Path: utzoo!utgpu!attcan!uunet!husc6!ogccse!blake!uw-beaver!mit-eddie!ll-xn!rkc From: rkc@XN.LL.MIT.EDU (rkc) Newsgroups: comp.emacs Subject: host query Message-ID: <1202@xn.LL.MIT.EDU> Date: 6 Jan 89 17:06:21 GMT Organization: MIT Lincoln Laboratory, Lexington, MA Lines: 12 I need to conditionally load a file in my .emacs file based on the name of the host I'm running on. The code would look something like: (if (string= (hostname) "my_computer") (load "~/emacs/file.elc")) Unfortunately I can't find a function that returns the host's name. Does anyone know what it is (or has anyone written such a function)? -Rob rkc@xn.ll.mit.edu