[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-store-link programmatically?
From: |
David Belohrad |
Subject: |
Re: [O] org-store-link programmatically? |
Date: |
Fri, 01 Nov 2013 23:53:41 +0100 |
User-agent: |
Notmuch/0.16+96~g459c586 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) |
Josiah Schwab <address@hidden> writes:
> Hi David,
>
>> i want to write a piece of code as a 'template', which generates TODO
>> using capture template, and inserts into the todo a LINK TO THE
>> LOCATION, from which I have called the org-capture.
>
> Have you looked at "9.1.3 Capture templates" in the documentation?
> http://orgmode.org/manual/Capture-templates.html
>
> It seems to me that the example TODO entry given (using "%a" in the
> template) will do what you describe:
>
> ,----
> | During expansion of the template, %a has been replaced by a link to
> | the location from where you called the capture command. This can be
> | extremely useful for deriving tasks from emails, for example.
> `----
>
> Best,
> Josiah
Right! Thanks for hint. I did not see this one. Does exactly what I
wanted to achieve
nice weekend
.d.