emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* File modification date
@ 2009-08-20  9:12 Sébastien Vauban
  2009-08-20 20:04 ` Carsten Dominik
  2009-08-20 22:32 ` Eric S Fraga, Eric S Fraga
  0 siblings, 2 replies; 5+ messages in thread
From: Sébastien Vauban @ 2009-08-20  9:12 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

I've always found the DATE header to be kind of useless, as it only indicates
the creation date of the file.

For me, it would be better if it would be the last edit date as it is the case
with the Emacs time-stamp.

Here a proposition to make this automagic:

--8<---------------cut here---------------start------------->8---
(add-hook 'org-mode-hook
          (lambda ()
            (set (make-local-variable 'time-stamp-format) "%:y-%02m-%02d")
            (set (make-local-variable 'time-stamp-start) "^#\\+DATE: +")
            (set (make-local-variable 'time-stamp-end) "$")))
--8<---------------cut here---------------end--------------->8---

Of course, `time-stamp-format' may be changed according to your taste.

Shouldn't be such a thing be the default?

Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-07 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20  9:12 File modification date Sébastien Vauban
2009-08-20 20:04 ` Carsten Dominik
2009-12-07 13:58   ` Sébastien Vauban
     [not found]     ` <877hsyzy0t.fsf-pwAqS3aGAJQybS5Ee8rs3A@public.gmane.org>
2009-12-07 16:13       ` Francesco Pizzolante
2009-08-20 22:32 ` Eric S Fraga, Eric S Fraga

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).