emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Define org-capture-templates with variables via customize


From: Xavier Maillard
Subject: [O] Define org-capture-templates with variables via customize
Date: Mon, 30 Mar 2015 06:07:17 +0200
User-agent: mu4e/0.9.11 Emacs/24.3.1 (gnu/linux)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]