A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.gnu.org/software/emacs/manual/html_node/emacs/Time-Stamps-for-One-File.html below:

Time Stamps for One File (GNU Emacs Manual)

Previous: Customizing the Time Stamp, Up: Updating Time Stamps Automatically   [Contents][Index]

20.3.6.2 Forcing Time Stamps for One File

If you are working on a file with multiple authors, and you cannot be sure the other authors have enabled time-stamping globally in their Emacs init files, you can force it to be enabled for a particular file by adding time-stamp to that buffer’s before-save-hook in that file’s local variables list. To extend one of the previous examples:

// Local variables:
// eval: (add-hook 'before-save-hook 'time-stamp nil t)
// time-stamp-pattern: "Published %Y in Boston"
// End:

Although this example shows them both set together, you can use eval without also setting time-stamp-pattern if you like the default pattern.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4