baileyc@tramp.Colorado.EDU (BAILEY CHRISTOPHER R) (11/19/90)
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. 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! Chris Bailey :: baileyc@tramp.Colorado.EDU :: University of Colorado Boulder Ride fast! take chances! but tread lightly! "No his mind is not for rent, to any god or government" - RUSH ORANGE BOWL BOUND! GO BUFFS!!!
roland@ai.mit.edu (Roland McGrath) (11/21/90)
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