Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!ginosko!uunet!mcsun!unido!corona!michael From: michael@uni-paderborn.de (Michael Schmidt) Newsgroups: comp.emacs Subject: Re: Getting hostname on status line. Message-ID: <688@corona.pb> Date: 23 Oct 89 09:09:05 GMT References: <1612@fredonia.UUCP> <8910032315.AA10699@cunixc.cc.columbia.edu> Sender: news@pbinfo.UUCP Reply-To: michael@uni-paderborn.de (Michael Schmidt) Organization: Uni-GH Paderborn, Germany Lines: 13 In-reply-to: lih@CUNIXC.CC.COLUMBIA.EDU (Andrew Lih) In article <8910032315.AA10699@cunixc.cc.columbia.edu>, lih@CUNIXC (Andrew Lih) writes: >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 ") %]"))) But that doesn't work from within .emacs. Could anybody comment how to get the hostname in the status line from .emacs? -- Michael Schmidt, Universitaet-GH Paderborn, FB 17, Warburger Str.100, D-4790 Paderborn, West Germany Mail: michael@pbinfo.UUCP or michael@pbinfo.uni-paderborn.de