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:12 +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=34855 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNme5-0000l5-At for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNme3-0005xl-Tn for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:53 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:33348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNme3-0005xc-NU for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 08:22:51 -0500 Received: by ewy27 with SMTP id 27so17113008ewy.0 for ; Wed, 01 Dec 2010 05:22:50 -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. 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 > > 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