emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xavier Maillard <xavier@maillard.im>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Define org-capture-templates with variables via customize
Date: Mon, 30 Mar 2015 06:07:17 +0200	[thread overview]
Message-ID: <86oanbxh56.fsf@kcals2.maillard.im> (raw)


Given the fact I defvar'ed a custom variable holding a template of my

#+BEGIN_SRC emacs-lisp
(defvar xma/org-task-with-effort-template "* TODO %^{Task}
:Effort: %^{effort|1:00|0:30|0:05|0:15|2:00|3:00|4:00}

" "Une tache avec une duree d'effort")

How would you use that in a template declared via the customize UI ?

How to do the equivalent of this:

#+BEGIN_SRC emacs-lisp
(setq org-capture-templates `(("e" "Task with effort" entry
                              (file "~/Dropbox/refile.org")


Thank you
-- Xavier.

             reply	other threads:[~2015-03-30  5:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-30  4:07 Xavier Maillard [this message]
2015-03-30 14:49 ` Define org-capture-templates with variables via customize Nick Dokos
2015-03-31 14:15   ` Nicolas Goaziou
2015-04-02  5:32     ` Xavier Maillard
2015-04-02  9:29       ` Nicolas Goaziou
2015-04-04 21:54         ` Xavier Maillard
2015-09-30 17:08           ` Nicolas Girard

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:

  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=86oanbxh56.fsf@kcals2.maillard.im \
    --to=xavier@maillard.im \
    --cc=emacs-orgmode@gnu.org \


* 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


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).