[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: [Orgmode] using (id "Name") target in org-capture-templates
From: |
Bastien |
Subject: |
[O] Re: [Orgmode] using (id "Name") target in org-capture-templates |
Date: |
Sun, 06 Mar 2011 18:08:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Sullivan,
"Sullivan, Gregory (US SSA)" <address@hidden> writes:
> The way I understood your patch is that I can use (currentfile) as
> _the_ target expression in a capture template. What I was requesting
> was to use 'capturefile' _within_ a file+headline target
> expressions. Let me re-include a motivating example - as your citation
> didn't include it:
Sorry, I overlooked your request.
> (setq org-capture-templates
> '(("j" "Journal" entry (file+headline currentfile "Journal") "* %a\n\n%i"))
> ("t" "To Do" entry (file+headline currentfile "Tasks") "* TODO %?
> %i\n")))
Actually, you can already do this:
(setq org-capture-templates
'(("j" "Journal" entry (file+headline buffer-file-name "Journal") "*
%a\n\n%i"))
("t" "To Do" entry (file+headline buffer-file-name "Tasks") "* TODO %?
%i\n")))
See the documentation about file specification.
So I removed (currentfile), which is simply (file buffer-file-name)).
HTH,
--
Bastien
- [O] Re: [Orgmode] using (id "Name") target in org-capture-templates,
Bastien <=