emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* capture inside org-edit-src-code buffer
@ 2012-01-11 20:28 Andreas Leha
  0 siblings, 0 replies; only message in thread
From: Andreas Leha @ 2012-01-11 20:28 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-11 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11 20:28 capture inside org-edit-src-code buffer Andreas Leha

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).