From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: File modification date Date: Thu, 20 Aug 2009 11:12:54 +0200 Message-ID: <87r5v6kfvt.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi, I've always found the DATE header to be kind of useless, as it only indicat= es the creation date of the file. For me, it would be better if it would be the last edit date as it is the c= ase 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 --=20 S=C3=A9bastien 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