emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Capture with org-directory not working?


From: Nick Dokos
Subject: Re: [O] Capture with org-directory not working?
Date: Mon, 19 Sep 2016 11:47:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Rainer M Krug <address@hidden> writes:

> Hi
>
> I have the following capture template:
>
> ,----
> |   ("T"   "TODO to be logged in notes.org"    
> |    entry   (file+headline (concat org-directory "/notes.org") "Tasks")      
>   
> |    ;; entry   (file+headline "~/org/notes.org" "Tasks")        
> |    "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a")
> `----
>
> As it is now, it is not working, but when I use the secont=d entry line,
> it is working.
>

Try (!!note the backquote at the beginning  and the comma before the concat 
form!!):

--8<---------------cut here---------------start------------->8---
(setq org-capture-templates
 `(
   ...
   ("T"   "TODO to be logged in notes.org"    
    entry   (file+headline ,(concat org-directory "/notes.org") "Tasks")        
    "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a")
   ...))
--8<---------------cut here---------------end--------------->8---


See

  (info "(elisp) Backquote")


-- 
Nick




reply via email to

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