Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!gem.mps.ohio-state.edu!rpi!tale
From: tale@pawl.rpi.edu (David C Lawrence)
Newsgroups: comp.emacs
Subject: Re: Getting hostname on status line.
Message-ID: <1989Oct3.224704.10269@rpi.edu>
Date: 3 Oct 89 22:47:04 GMT
References: <1612@fredonia.UUCP>
Organization: Rensselaer Polytechnic Institute, Troy NY
Lines: 24
In-Reply-To: mazumdar@fredonia.UUCP's message of 3 Oct 89 20:46:46 GMT

(IcK.  UUCP bounce messages.)

In <1612@fredonia.UUCP> mazumdar@fredonia.UUCP (Jin Mazumdar) writes:
Jin> 	Is there a simple way to have the hostname show up on the
Jin> status line in Gnu-Emacs?  By simple I am thinking of a hook or some
Jin> code that can be put in .emacsrc.  

Well, where you want it and how much of it you want is all pretty much
a matter of taste, but something of the sort

(setq global-mode-string (list "" (system-name)))

would be a bare start.  It would be a good idea to check on the
documentation for the variables mode-line-format and
global-mode-string; if you also start display-time you would want to
make the above expression more robust, especially if it starts after
display time.  By more robust, you would need to basically check the
list structure and append to it appropriately rather then just replace
it.   Also check on the documentation for string-match if you want to
drop some domain names from the string (system-name) is returning.

Dave
--
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))