From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org capture: use org-default-notes-file Date: Tue, 20 Jul 2010 09:27:49 +0200 Message-ID: <049A9E03-72CA-49E9-A760-A255DAA6EB4D@gmail.com> References: <8739vfb0vq.wl%ucecesf@ucl.ac.uk> <080323D2-8793-457B-A7F8-7A3B5DF45931@2bike4.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=59801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ob7F6-0006Or-Gu for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 03:27:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ob7F5-0001Ea-Ce for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 03:27:56 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:63184) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob7F5-0001EU-5t for emacs-orgmode@gnu.org; Tue, 20 Jul 2010 03:27:55 -0400 Received: by eydd26 with SMTP id d26so1296532eyd.0 for ; Tue, 20 Jul 2010 00:27:54 -0700 (PDT) In-Reply-To: <080323D2-8793-457B-A7F8-7A3B5DF45931@2bike4.com> 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: StephenL Cc: emacs-org On Jul 20, 2010, at 3:09 AM, StephenL wrote: > 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. This should now work. If the file is either nil (not recommended because then the customize interface does not work) or the empty string, org-default-notes-file will be used instead. - Carsten > > 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 > '(("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 ") > )) > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten