* Automatic Timestamp Update
@ 2008-12-08 20:47 David A. Gershman
2008-12-09 9:45 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: David A. Gershman @ 2008-12-08 20:47 UTC (permalink / raw
To: orgmode
I have my "orgmode" structured in multiple files. However, every time I
save a file I wouldn't mind a "last modified" time stamp to be updated.
I thought emacs itself had something of this nature but I'm wondering
if anyone has a different idea/method, perhaps orgmode-specific.
Thanks.
---------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Automatic Timestamp Update
2008-12-08 20:47 Automatic Timestamp Update David A. Gershman
@ 2008-12-09 9:45 ` Eric S Fraga
2008-12-09 14:03 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2008-12-09 9:45 UTC (permalink / raw
To: emacs-orgmode
On 2008-12-08, David A. Gershman <dagershman@dagertech.net> wrote:
>
> I have my "orgmode" structured in multiple files. However, every time I
> save a file I wouldn't mind a "last modified" time stamp to be updated.
> I thought emacs itself had something of this nature but I'm wondering
> if anyone has a different idea/method, perhaps orgmode-specific.
Can't help you with something orgmode specific but Emacs does indeed
have something that will do this for you. Have a look at
"time-stamp". You can have file specific settings for time-stamp.
For my org files, I have
#+DATE: 2008.12.05 18:43:01
as one of the first lines in the file and then have the following at the end:
---------------------------------------- cut here
* COMMENT Local file settings for Emacs
# Local Variables:
# time-stamp-line-limit: 1000
# time-stamp-format: "%04y.%02m.%02d %02H:%02M:%02S"
# time-stamp-active: t
# time-stamp-start: "#\\+DATE:[ \t]*"
# time-stamp-end: "$"
# End:
---------------------------------------- cut here
Hope this helps.
--
Eric S Fraga, UCL
BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Automatic Timestamp Update
2008-12-09 9:45 ` Eric S Fraga
@ 2008-12-09 14:03 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2008-12-09 14:03 UTC (permalink / raw
To: emacs-orgmode
On 2008-12-09, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> On 2008-12-08, David A. Gershman <dagershman@dagertech.net> wrote:
>> I have my "orgmode" structured in multiple files. However, every time I
>> save a file I wouldn't mind a "last modified" time stamp to be updated.
>> I thought emacs itself had something of this nature but I'm wondering
>> if anyone has a different idea/method, perhaps orgmode-specific.
>
> Can't help you with something orgmode specific but Emacs does indeed
> have something that will do this for you. Have a look at
> "time-stamp". You can have file specific settings for time-stamp.
> [...]
I should have also added that, besides the bits in the org files, you
need to add the time-stamp command to the write-file-hook list so that
time-stamp is automatically invoked whenever you write the file out:
(add-hook 'write-file-hooks 'time-stamp)
This should be in your .emacs (or equivalent).
--
Eric S Fraga, UCL
BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-09 16:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 20:47 Automatic Timestamp Update David A. Gershman
2008-12-09 9:45 ` Eric S Fraga
2008-12-09 14:03 ` Eric S Fraga
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.