From: Josiah Schwab <jschwab@gmail.com>
To: David Belohrad <david@belohrad.ch>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-store-link programmatically?
Date: Fri, 01 Nov 2013 15:26:40 -0700 [thread overview]
Message-ID: <87y557bvxb.fsf@gmail.com> (raw)
In-Reply-To: <87eh6zpzen.fsf@pcbe13433.cern.ch>
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
next prev parent reply other threads:[~2013-11-01 22:31 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 [this message]
2013-11-01 22:53 ` David Belohrad
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y557bvxb.fsf@gmail.com \
--to=jschwab@gmail.com \
--cc=david@belohrad.ch \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.