emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Capture into subheading of current headline


From: Nathan Neff
Subject: [Orgmode] Capture into subheading of current headline
Date: Sun, 28 Nov 2010 13:10:23 -0600

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/address@hidden/msg28946.html

Any help appreciated,

Thanks,
--Nate



reply via email to

[Prev in Thread] Current Thread [Next in Thread]