From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Capture into subheading of current headline Date: Wed, 1 Dec 2010 14:05:15 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34886 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNme9-0000nX-8p for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNme7-0005yO-Ex for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:57 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:43205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNme7-0005yE-AW for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:55 -0500 Received: by eydd26 with SMTP id d26so17090648eyd.0 for ; Wed, 01 Dec 2010 05:22:54 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nathan Neff Cc: emacs-orgmode 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. To insert a capture entry at point can be done with a zero prefix argument C-0 C-c r which will work for any "entry" templates you have defined. I guess we could also have a special target for this. To make your own, make the target function point at the *parent* headline. - Carsten > > For example: > > * Some Heading > > some text in this heading > > > 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: > > * > * Some Heading > > ** < 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