From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Henoch Subject: Re: Org capture templates - file paths Date: Thu, 19 Aug 2010 13:56:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=58047 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Om3jY-00052S-ET for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 07:56:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Om3jX-0003e6-77 for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 07:56:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:47115) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Om3jX-0003dh-1l for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 07:56:35 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Om3jU-0007hR-Hd for emacs-orgmode@gnu.org; Thu, 19 Aug 2010 13:56:32 +0200 Received: from c-f893e255.56-4-64736c14.cust.bredbandsbolaget.se ([85.226.147.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 13:56:32 +0200 Received: from magnus.henoch by c-f893e255.56-4-64736c14.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Aug 2010 13:56:32 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Gustav Wikström writes: > (setq org-capture-templates > '(("n" "Note" entry (file my-gtd-inbox-file) > "* %?\n %i\n %a") > ("j" "Journal" entry (file+datetree my-gtd-journal-file) > "* %?\nEntered on %U\n %i\n %a"))) Backquotes and commas are your friends: (setq org-capture-templates `(("n" "Note" entry (file ,my-gtd-inbox-file) "* %?\n %i\n %a") ("j" "Journal" entry (file+datetree ,my-gtd-journal-file) "* %?\nEntered on %U\n %i\n %a"))) Read more at http://www.gnu.org/s/emacs/manual/html_node/elisp/Backquote.html . Magnus