From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Is it possible to call some function after capture? Date: Sun, 3 Apr 2016 19:08:19 +0000 (UTC) Message-ID: References: <874mbiv9mn.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amnNw-00012q-5o for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 15:08:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amnNs-0002GH-4Y for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 15:08:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:40162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amnNr-0002GC-Ti for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 15:08:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1amnNp-000278-7T for emacs-orgmode@gnu.org; Sun, 03 Apr 2016 21:08:25 +0200 Received: from 172-0-42-27.lightspeed.ltrkar.sbcglobal.net ([172.0.42.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2016 21:08:25 +0200 Received: from adam by 172-0-42-27.lightspeed.ltrkar.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 03 Apr 2016 21:08:25 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marcin Borkowski mbork.pl> writes: > I know about `org-capture-after-finalize-hook', but is it possible for > a function in there to know which capture template was used? Hi Marcin, You might be able to use the :key property of org-capture-plist, which records the selection key of the template used (the :template property appears to record the contents of the filled-in template).