From mboxrd@z Thu Jan 1 00:00:00 1970 From: StephenL Subject: org capture: use org-default-notes-file Date: Mon, 19 Jul 2010 21:09:47 -0400 Message-ID: <080323D2-8793-457B-A7F8-7A3B5DF45931@2bike4.com> References: <8739vfb0vq.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob1LF-0006HG-S3 for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 21:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob1LE-0000Ki-Sh for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 21:09:53 -0400 Received: from mout.perfora.net ([74.208.4.195]:56310) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob1LE-0000KW-NN for emacs-orgmode@gnu.org; Mon, 19 Jul 2010 21:09:52 -0400 In-Reply-To: <8739vfb0vq.wl%ucecesf@ucl.ac.uk> 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-org Using the latest and greatest 7.01... Is it possible to use the variable org-default-notes-file in the org = capture settings? I have a lot of org capture templates and I would rather set the file in = one location then have to set it for each template. I would think it is = possible with the org-default-notes-file, but no matter how I try to use = it in the template it doesn't work. I get errors such as expecting = stringp. See below. I would like to do something similar to the todo entry and = not the note entry where I need to explicitly specify the file. Thanks for any help. Stephen ;;; Org Capture (setq org-default-notes-file (concat org-directory "/refile.org")) (define-key global-map (kbd "C-c c") 'org-capture) (setq org-capture-templates=20 '(("t" "todo" entry (file+headline org-default-notes-file "ToDo") "* = TODO %?\n %U\n ") ("n" "note" entry (file+headline = "/Users/stephen/Dropbox/org/refile.org" "Notes") "* %?\n %U\n ") ))