[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] using (id "Name") target in org-capture-templates
From: |
Bastien |
Subject: |
Re: [Orgmode] using (id "Name") target in org-capture-templates |
Date: |
Fri, 11 Feb 2011 11:21:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Gregory,
"Sullivan, Gregory (US SSA)" <address@hidden> writes:
> Thanks for the note. I did indeed mean to use headings.
>
> I think it would be nice to be able to have the file dynamic but the
> heading static in capture templates. In my case, I always want to
> find a particular heading in the buffer that the capture originated
> from. So I had to put the whole target spec in a function, as in:
I like the idea of being able to tell capture to use the current file.
This patch against latest Org allows you to use (currentfile) like this:
,----
| (setq org-capture-templates
| '(("j" "Journal" entry (currentfile) "* %a\n\n%i")))
`----
Let me know if you find this useful.
0001-Allow-currentfile-for-capture-templates.patch
Description: Text Data
--
Bastien
- Re: [Orgmode] using (id "Name") target in org-capture-templates,
Bastien <=