[gnu.emacs] display-time

alanw@django.berkeley.edu (Alan Weinstein) (05/18/89)

Is it possible to eliminate the "load" information from the status
line when display-time is invoked?  

Alan Weinstein
UC Berkeley
alanw@cartan.berkeley.edu

jr@bbn.com (John Robinson) (05/19/89)

In article <24576@agate.BERKELEY.EDU>, alanw@django (Alan Weinstein) writes:
>Is it possible to eliminate the "load" information from the status
>line when display-time is invoked?  

display-time simply runs the program `loadst'.  Normally, this
resolves to /usr/local/emacs/etc/loadst, but if your exec-path
variable has a directory earlier than that one that contains an
executable loadst, it will be used instead.  So you can modify
loadst.c to make a private version, or better yet, simply make it the
shellscript:

while true
do date +%r
   sleep $2
done

(note: emacs calls loadst with arguments of -n and <number of seconds
to sleep>, which defaults to 60.  To be squeaky clean, the shellscript
should check its arguments).

I once used this trick to get a modeline that said [News] when rn -c -s
had non-0 exit status.  Now there's always news, so I don't bother.
--
/jr, nee John Robinson	 What a waste it is to lose one's mind--or not
jr@bbn.com or bbn!jr	  to have a mind.  How true that is. -Dan Quayle