emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: datetree+file broken?


From: Sébastien Vauban
Subject: [Orgmode] Re: datetree+file broken?
Date: Tue, 04 Jan 2011 10:08:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

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




reply via email to

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