all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-remember templates with dynamic target headline
@ 2009-06-17  3:27 Daniel J. Sinder
  2009-06-17  6:20 ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel J. Sinder @ 2009-06-17  3:27 UTC (permalink / raw)
  To: org-mode

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?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-20  4:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-17  3:27 org-remember templates with dynamic target headline Daniel J. Sinder
2009-06-17  6:20 ` Nick Dokos
2009-06-18  5:09   ` Carsten Dominik
2009-06-19 23:09     ` Keith Swartz
2009-06-20  4:03       ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.