From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: capture inside org-edit-src-code buffer
Date: Wed, 11 Jan 2012 21:28:49 +0100 [thread overview]
Message-ID: <87d3aqm1a6.fsf@med.uni-goettingen.de> (raw)
Hi all,
I'd like to be able to call capture such that the captured item is
stored under '* Notes' in the current org-file *from inside an
org-edit-src-code buffer*.
Preferably, I'd like a single capture template, that works
(1) on the current org file normally
(2) on the "parent org file" after doing C-' on a source block
A possible capture template for (1) looks like this:
("w" "currentfile" entry (file+headline (buffer-file-name) "Notes") "")
How would I extend this to (2)?
Optimally, this template would record the #+name tag of the source
block under the point (if the point is in a source block) in (1) or the
source block being edited in (2), if such #name tag exists.
Thanks for hints,
Andreas
reply other threads:[~2012-01-11 20:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87d3aqm1a6.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--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 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).