[Top][All Lists]

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

[Orgmode] org-remember templates with dynamic target headline

From: Daniel J. Sinder
Subject: [Orgmode] org-remember templates with dynamic target headline
Date: Tue, 16 Jun 2009 20:27:59 -0700
User-agent: Thunderbird (Windows/20090302)

I want a remember template that will have a target headline based on the date on which I call org-remember.

For a simple example, the effect I'd like to achieve is shown by putting the following in my .emacs:

(setq org-remember-templates
`(("Journal" ?j "* %u %?\n" "~/org/wjournal.org" ,(format-time-string "%G: Week %V"))))

I'm an elisp noob, but I realize the problem here is that format-time-string is only evaluated once when my .emacs is read. So, unless I restart emacs every week. This doesn't work.

How can I cause format-time-string to be re-evaluated whenever org-remember is called?


reply via email to

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