Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!gateway!CUNIXC.CC.COLUMBIA.EDU!lih
From: lih@CUNIXC.CC.COLUMBIA.EDU (Andrew Lih)
Newsgroups: comp.emacs
Subject: Getting hostname on status line.
Message-ID: <8910032315.AA10699@cunixc.cc.columbia.edu>
Date: 3 Oct 89 23:15:40 GMT
References: <1612@fredonia.UUCP>
Sender: news@bbn.COM
Organization: BBN news/mail gateway
Lines: 21

> Date: 3 Oct 89 20:46:46 GMT From: Jin Mazumdar
> 
> Sender: arpa-unix-emacs-request@bbn.com
> 
> 	Is there a simple way to have the hostname show up on the
> status line in Gnu-Emacs?  By simple I am thinking of a hook or some
> code that can be put in .emacsrc.  Yes we have Berkeley UNIX.

On our EMACS version 18.52.24, you can just use the following:

(setq host (system-name))

(setq default-mode-line-format (quote (" " host " -%*- " "%b " global-mode-string mode-line-time-string " [" (-3 . "%p") "]" " %[(" mode-name minor-mode-alist mode-line-process ") %]")))
                 ___________________________________________________________
""""""""""     /							    \
|  @  @  |     | Andrew "Fuz" Lih	Columbia University Center           |
<    >   > ___/   Academic Computing	 for Computing Activities            |
 \ \__/ / <___                                                               /
  \____/      \    lih@cunixc.cc.columbia.edu    AJLUS@CUVMB.BITNET         /
	       \    lih@cs.columbia.edu     ...rutgers!columbia!cunixc!lih |
                \__________________________________________________________/