emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-capture-templates file+datetree+prompt question
@ 2011-12-06  6:04 Erik Hetzner
  2011-12-06  6:05 ` Erik Hetzner
  2011-12-06  7:43 ` Carsten Dominik
  0 siblings, 2 replies; 11+ messages in thread
From: Erik Hetzner @ 2011-12-06  6:04 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

Hi all,

I would like to use a capture template to capture calendar entries &
file them to a date tree organized calendar.org file.

Specifically, what I want to happen is this: the template prompts me
for a date, then prompts me for headline. The date should be used for
the datetree & used as a datestamp in the headline.

I have tried the following template:

  (setq org-capture-templates
        '(("c" "Calendar" entry (file+datetree+prompt "~/s/notes/calendar.org")
           "* %^{What?}\n%t\n%?")))

What happens with this is that I get prompted for a date, which is
used to file the entry in the datetree, but the date in the headline
is always today’s date.

If I use `k c` in the agenda (org-agenda-action) this works as
expected, with no prompting for a date, the entry filed properly in
the datetree, and the date in the headline set properly.

Any thoughts on how to fix this?

best, Erik

[-- Attachment #2: Type: text/plain, Size: 53 bytes --]

Sent from my free software system <http://fsf.org/>.

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

end of thread, other threads:[~2011-12-12  7:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06  6:04 org-capture-templates file+datetree+prompt question Erik Hetzner
2011-12-06  6:05 ` Erik Hetzner
2011-12-06  7:43 ` Carsten Dominik
2011-12-06  8:23   ` Erik Hetzner
2011-12-06  8:26     ` Carsten Dominik
2011-12-06 16:31       ` Erik Hetzner
2011-12-11 19:45       ` Erik Hetzner
2011-12-11 20:37         ` Carsten Dominik
2011-12-11 23:18         ` Bastien
2011-12-12  0:06           ` Erik Hetzner
2011-12-12  7:05             ` Bastien

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).