Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!think!mit-eddie!ambar From: ambar@mit-eddie.MIT.EDU (Jean Marie Diaz) Newsgroups: net.emacs Subject: Re: hostname in mode line? Message-ID: <2474@mit-eddie.MIT.EDU> Date: Sat, 5-Jul-86 21:10:15 EDT Article-I.D.: mit-eddi.2474 Posted: Sat Jul 5 21:10:15 1986 Date-Received: Sun, 6-Jul-86 05:44:32 EDT References: <2408@mit-eddie.MIT.EDU> Reply-To: ambar@mit-eddie.UUCP (Jean Marie Diaz) Organization: Madhouse International Lines: 20 In article <2408@mit-eddie.MIT.EDU> douglis@kim.Berkeley.EDU writes: > >Does anyone have a way to get the hostname in each mode line? When I >run emacs under X, I don't have a header on the window to tell me >which host I'm running on, and the only way I have to find out with >which machine an emacs is associated is to go to its shell subwindow. First, include a line in your .login to the effect that 'host = hostname'. Then try something like this: (setq default-mode-line-format ;to distinguish from CCA lusemacs (concat "%*%*%*GNU " (getenv "host") " %b %M %[(%m)%] %3p %-")) (setq mode-line-format default-mode-line-format) -- AMBAR "I need something to change your mind...."