From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: is it possible to reuse a capture template expansion? Date: Tue, 04 Oct 2016 19:10:10 +0200 Message-ID: <87lgy4oxal.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brTES-0008K2-Di for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 13:10:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brTEM-0002LS-Da for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 13:10:20 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brTEM-0002Jp-6l for emacs-orgmode@gnu.org; Tue, 04 Oct 2016 13:10:14 -0400 In-Reply-To: (Stig Brautaset's message of "Tue, 04 Oct 2016 16:52:04 +0100") 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: Stig Brautaset Cc: emacs-orgmode@gnu.org Hello, Stig Brautaset writes: > I've got a capture template where I want to prompt for a string and use > it in two places, but I end up being prompted twice. I want a template > something like the below, and be prompted only once each for Title and > Abstract. Is that possible somehow? Any help appreciated. > > > : * TODO Write %^{Title} Blog post > : #+begin_html > : --- > : title: %^{Title} > : layout: post > : abstract: %^{Abstract} > : --- > : #+end_html > : > : %^{Abstract} > : > : %? You can use %1, %2... to reuse the first string, the second one... Regards, -- Nicolas Goaziou