From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: What is the best way to set #+DATE to today's date? Date: Thu, 06 Aug 2015 14:18:48 -0400 Message-ID: References: <87bnekmknk.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNPkm-0006LW-Uz for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 14:18:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNPkh-0003rc-VF for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 14:18:56 -0400 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:34226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNPkh-0003rI-RA for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 14:18:51 -0400 Received: by qkcs67 with SMTP id s67so6896954qkc.1 for ; Thu, 06 Aug 2015 11:18:51 -0700 (PDT) In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kaushal Cc: emacs-org list , Rasmus I use a function like that here: https://github.com/jkitchin/jmax/blob/master/techela/techela-grade.el#L182 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))) #+END_SRC 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 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu