Xref: utzoo gnu.emacs.help:371 comp.emacs:9553 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!shelby!snorkelwacker.mit.edu!mintaka!albert.ai.mit.edu!roland From: roland@ai.mit.edu (Roland McGrath) Newsgroups: gnu.emacs.help,comp.emacs Subject: Re: auto exec of certain command on each buffer Message-ID: Date: 21 Nov 90 13:31:22 GMT References: <29979@boulder.Colorado.EDU> Sender: daemon@mintaka.lcs.mit.edu (Lucifer Maleficius) Distribution: usa Organization: Hackers Anonymous International, Ltd., Inc. (Applications welcome) Lines: 29 In-Reply-To: baileyc@tramp.Colorado.EDU's message of 19 Nov 90 06:25:03 GMT In article <29979@boulder.Colorado.EDU> baileyc@tramp.Colorado.EDU (BAILEY CHRISTOPHER R) writes: How can I have each buffer automatically display the time (M-x display-time)? For instance, I want the time displayed in every buffer I create, and each buffer created as a result of the command line. I assume that the solution to this will go in my .emacs file. display-time affects all buffers' mode lines (except for buffers which have specially twiddled mode lines, like GNUS's buffers (there is a GNUS option for whether to have display-time take effect in those buffers)). To get display-time all the time, put: (display-time) in your .emacs. Also, is there a generic way to do this? In other words, what if I want to execute some other commands automatically. Some things I might want to do would be create a dired window every time I run emacs, or run mail automatically in a window each time I run emacs, etc. Thanks! Put the lisp code to do these things in .emacs. For example: (dired "~") ; Run dired on ~. (rmail) ; Read mail. -- Roland McGrath Free Software Foundation, Inc. roland@ai.mit.edu, uunet!ai.mit.edu!roland