From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Capture with org-directory not working? Date: Mon, 19 Sep 2016 11:47:36 -0400 Message-ID: <87vaxr51t3.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm0np-0001UC-00 for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 11:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm0nk-0003ez-Rl for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 11:48:15 -0400 Received: from [195.159.176.226] (port=33627 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm0nk-0003dP-Kb for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 11:48:12 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bm0nQ-0007r9-CS for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 17:47:52 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Rainer M Krug 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