|
From: | B. T. Raven |
Subject: | Re: Inserting a timestamp in a file |
Date: | Fri, 30 Jan 2009 23:15:10 -0600 |
User-agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
Fred Picher wrote:
Hello, Is there a way to insert a timestamp at a precise place in a file, eg. is there a function that does this ? Thanks.
This has to go in one of the first eight lines of the file ;; Time-stamp: "" then this (or equivalent code) in your .emacs: (add-hook 'write-file-hooks 'time-stamp)I suppose you could copy it programatically anywhere else in the file if you needed to, say at a bookmark. That would have to be done again everytime you saved. What's the usefulness of putting the time stamp at an arbitrary place? A save saves the whole file.
Ed
[Prev in Thread] | Current Thread | [Next in Thread] |