From: "Daniel J. Sinder" <djsinder@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: org-remember templates with dynamic target headline
Date: Tue, 16 Jun 2009 20:27:59 -0700 [thread overview]
Message-ID: <4A3862BF.8040404@gmail.com> (raw)
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
next reply other threads:[~2009-06-17 3:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 3:27 Daniel J. Sinder [this message]
2009-06-17 6:20 ` org-remember templates with dynamic target headline Nick Dokos
2009-06-18 5:09 ` Carsten Dominik
2009-06-19 23:09 ` Keith Swartz
2009-06-20 4:03 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A3862BF.8040404@gmail.com \
--to=djsinder@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).