all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Define org-capture-templates with variables via customize
@ 2015-03-30  4:07 Xavier Maillard
  2015-03-30 14:49 ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: Xavier Maillard @ 2015-03-30  4:07 UTC (permalink / raw)
  To: Org Mode

Hello,

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

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

" "Une tache avec une duree d'effort")
#+END_SRC

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")
                              ,xma/org-task-with-effort-template)))
#+END_SRC

?

Thank you
-- Xavier.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-30 17:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30  4:07 Define org-capture-templates with variables via customize Xavier Maillard
2015-03-30 14:49 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.