Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Previous: File Shadowing, Up: Saving


23.3.6 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 before-save-hook; 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 Environment).


 
 
  Published under the terms of the GNU General Public License Design by Interspire