[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:
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
- [O] What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Rasmus, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Rasmus, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?,
John Kitchin <=
- Re: [O] What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Thomas S . Dye, 2015/08/06
- Re: [O] What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Thomas S . Dye, 2015/08/06
- Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Kaushal, 2015/08/06
- Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Thomas S . Dye, 2015/08/06
- Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Fabrice Niessen, 2015/08/06
- Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Thomas S . Dye, 2015/08/06
- Re: [O] [PATCH] Re: What is the best way to set #+DATE to today's date?, Nicolas Goaziou, 2015/08/07