Rainer M Krug <rai...@krugs.de> 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