emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Stig Brautaset <stig@brautaset.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: is it possible to reuse a capture template expansion?
Date: Tue, 04 Oct 2016 19:10:10 +0200	[thread overview]
Message-ID: <87lgy4oxal.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2d1jgt8m3.fsf@brautaset.org> (Stig Brautaset's message of "Tue, 04 Oct 2016 16:52:04 +0100")

Hello,

Stig Brautaset <stig@brautaset.org> 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

  reply	other threads:[~2016-10-04 17:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 15:52 is it possible to reuse a capture template expansion? Stig Brautaset
2016-10-04 17:10 ` Nicolas Goaziou [this message]
2016-10-04 20:12   ` Stig Brautaset

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lgy4oxal.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=stig@brautaset.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).