Hi Nathan,
On Nov 28, 2010, at 8:10 PM, Nathan Neff wrote:
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.
You can insert a capture entry at the location where you are
at using a zero prefix to the capture command:
C-0 C-c r
Does that do what you want? It hast the advantage that
it works for any entry-like templates in your setup.
I guess we could make a special target for filing as child
of current heading if mor ethan one person found this useful....
- Carsten
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
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode