From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Capture into subheading of current headline
Date: Sun, 28 Nov 2010 13:10:23 -0600 [thread overview]
Message-ID: <AANLkTinm3TH+4kxfvgSZ2x8wLTBAn_WrD4V15mqLyxBp@mail.gmail.com> (raw)
I think I'm missing something obvious here -- I can't
define a capture template that puts the results as a sub-heading
of the heading that the cursor is currently in.
For example:
* Some Heading
<cursor is here>
some text in this heading
<I want to use org-capture to put a subheading here>
I tried defining a template that used the "org-end-of-subtree" function:
(setq org-capture-templates
`(("x" "Subheading" entry (function org-end-of-subtree) "*
%?\n\n" :clock-in t :clock-resume t)
)
)
But, the captured data is inserted as a sibling heading
in front of the heading where the cursor is, like this:
* <The result of my capture template>
* Some Heading
<cursor is here>
** < I want the result of the capture template here>
I've also tried "outline-next-heading", and "outline-end-of-subtree"
but they add
non-subtree headlines, and insert into #+begin_src / #+end_src blocks,
which is undesirable
I've also tried the solution proposed in this thread, but haven't
quite got it correct:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28946.html
Any help appreciated,
Thanks,
--Nate
next reply other threads:[~2010-11-28 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-28 19:10 Nathan Neff [this message]
2010-12-01 13:05 ` Capture into subheading of current headline Carsten Dominik
2010-12-01 14:30 ` Eric S Fraga
2010-12-01 22:35 ` Nathan Neff
2010-12-01 13:05 ` Carsten Dominik
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=AANLkTinm3TH+4kxfvgSZ2x8wLTBAn_WrD4V15mqLyxBp@mail.gmail.com \
--to=nathan.neff@gmail.com \
--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).