[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] What is the best way to set #+DATE to today's date?

From: John Kitchin
Subject: Re: [O] What is the best way to set #+DATE to today's date?
Date: Thu, 06 Aug 2015 14:18:48 -0400

I use a function like that here:

and to set the filetag as you suggest you would call it like this:

#+BEGIN_SRC emacs-lisp
(gb-set-filetag "DATE" (format-time-string "%b %d %Y, %a" (current-time)))

You could put that in some hook function if you like.

Kaushal writes:

>> Why don't you just use a timestamp?
> But that would need me to insert the timestamp manually each time before
> exports
>> You can update whenever you want or using
>>    (org-insert-time-stamp (current-time))
>> at the right spot.
> Wouldn't that too need manual navigation to #+date: and then eval that
> elisp form?

Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213

reply via email to

[Prev in Thread] Current Thread [Next in Thread]