From: David Belohrad <david@belohrad.ch>
To: Josiah Schwab <jschwab@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-store-link programmatically?
Date: Fri, 01 Nov 2013 23:53:41 +0100 [thread overview]
Message-ID: <87wqkrlone.fsf@pcbe13433.cern.ch> (raw)
In-Reply-To: <87y557bvxb.fsf@gmail.com>
Josiah Schwab <jschwab@gmail.com> 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.
prev parent reply other threads:[~2013-11-01 22:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 21:47 org-store-link programmatically? David Belohrad
2013-11-01 22:26 ` Josiah Schwab
2013-11-01 22:53 ` David Belohrad [this message]
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=87wqkrlone.fsf@pcbe13433.cern.ch \
--to=david@belohrad.ch \
--cc=emacs-orgmode@gnu.org \
--cc=jschwab@gmail.com \
/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).