From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Hudson Subject: Re: org mode capture to headline at point Date: Fri, 13 May 2016 18:07:32 +0100 Message-ID: <87a8jt51zv.fsf@quiz.hudson-it.ddns.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1GXO-0001sw-KS for emacs-orgmode@gnu.org; Fri, 13 May 2016 13:06:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1GXI-0005tj-Fh for emacs-orgmode@gnu.org; Fri, 13 May 2016 13:06:05 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:33825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1GXI-0005td-9G for emacs-orgmode@gnu.org; Fri, 13 May 2016 13:06:00 -0400 Received: by mail-wm0-x229.google.com with SMTP id v200so4568896wmv.1 for ; Fri, 13 May 2016 10:05:59 -0700 (PDT) In-Reply-To: (Xebar Saram's message of "Fri, 13 May 2016 18:08:04 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xebar Saram Cc: org mode On Fri, 13 May 2016 at 4:08:04 pm BST, Xebar Saram wrote: > any one knows how to launch a capture (thats pre defined) but auto refile that > capture to the/beneath the current header at point? Hope I've understood your requirement correctly. I think this will do what you want: If you can redefine the capture template, then use the 'function' target location option and specify a function that either does nothing (if you will always have point /exactly/ where you want the capture inserted before you invoke capture), or else one that inserts the start of a new entry below point. Then you can just C-c C-c to get your capture where you want it instead of C-c C-w, no refile required. -- Phil Hudson http://hudson-it.ddns.net @UWascalWabbit PGP/GnuPG ID: 0x887DCA63