emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: Automatic Timestamp Update
Date: Tue, 9 Dec 2008 14:03:51 +0000	[thread overview]
Message-ID: <slrngjsum7.46c.e.fraga@eeepc.chemeng.ucl.ac.uk> (raw)
In-Reply-To: slrngjsfh1.7f5.e.fraga@eeepc.chemeng.ucl.ac.uk

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 >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.

      reply	other threads:[~2008-12-09 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrngjsum7.46c.e.fraga@eeepc.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).