Path: utzoo!attcan!uunet!oddjob!ncar!ames!mailrus!uwmcsd1!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: mail without time Message-ID: <27412@bbn.COM> Date: 25 Jul 88 20:39:20 GMT References: Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Distribution: comp Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 18 In-reply-to: ghh@clarity.princeton.edu (Gilbert Harman) In article , ghh@clarity (Gilbert Harman) writes: >In gnu emacs 19.50.3 is there a way to have new mail >indicated in the mode line without having the time and load >showing up? [I assume you mean 18.50.3, or else I just missed a time warp] The stuff that goes into the mode line is simply the output of the program loadst, which is normally run from the emacs/etc/ directory. If you put a program named loadst on your search path, emacs will execute it first. I did this for a while with a shell script that looked for new news and added [News] to the modeline when appropriate. To get only [Mail] have the shellscript check ~/mailbox and act accordingly; it just does this every 60 seconds and emacs does the rest. If you want it in C, pick up and hack the source from emacs/etc/. --