🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #8240

host query

#8240
From: rkc
Date: Fri, 06 Jan 1989 17:06
12 lines
670 bytes
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
Technical Details
Message-ID: <1202@xn.LL.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!husc6!ogccse!blake!uw-beaver!mit-eddie!ll-xn!rkc

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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