Daniel E. Doherty,

Daniel E. Doherty wrote:
> All,
>
> I have the following templates defined for org-capture:
>
> ,----
> | (setq org-capture-templates
> |       '(("t" "Todo Item" entry
> |          (file+headline  org-default-notes-file "Tasks")
> |          "* TODO %? %^G\n  %a")
> |         ("p" "Phone Call Log" entry
> |          (file+headline org-default-notes-file "Phone calls")
> |          "* %U Phone call with %:name %^G\n\n  %?")
> |         ("i" "Invoice" entry
> |          (file+headline org-default-notes-file "Invoices")
> |          "* %^T  %^G\n  %?")
> |         ("j" "Journal Entry" entry
> |          (file+datetree (concat org-directory "Journal.org"))
> |          "* Entered on %U\n %i%?\n%a")))
> `----

Use backquotes and commas:

#+begin_src emacs-lisp
(setq org-capture-templates
      `(("j" "Journal Entry" entry
         (file+datetree ,(concat org-directory "Journal.org"))
         "* Entered on %U\n %i%?\n%a")))
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to