[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

M.3.4 Updating Time Stamps Automatically

You can arrange to put a time stamp in a file, so that it will be updated automatically each time you edit and save the file. The time stamp has to be in the first eight lines of the file, and you should insert it like this:

 
Time-stamp: <>

or like this:

 
Time-stamp: ""

Then add the hook function time-stamp to the hook write-file-hooks; that hook function will automatically update the time stamp, inserting the current date and time when you save the file. You can also use the command M-x time-stamp to update the time stamp manually. For other customizations, see the Custom group time-stamp. Note that non-numeric fields in the time stamp are formatted according to your locale setting (see section AE.5 Environment Variables).



This document was generated on April 2, 2002 using texi2html