emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: StephenL <stephenl@2bike4.com>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: org capture: use org-default-notes-file
Date: Mon, 19 Jul 2010 21:09:47 -0400	[thread overview]
Message-ID: <080323D2-8793-457B-A7F8-7A3B5DF45931@2bike4.com> (raw)
In-Reply-To: <8739vfb0vq.wl%ucecesf@ucl.ac.uk>

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 
  '(("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 ")
                                     ))

  reply	other threads:[~2010-07-20  1:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 12:10 question about date-tree Emin.shopper Martinian.shopper
2010-07-19 21:46 ` Eric S Fraga
2010-07-20  1:09   ` StephenL [this message]
2010-07-20  7:27     ` org capture: use org-default-notes-file Carsten Dominik
2010-07-20 14:27   ` question about date-tree Carsten Dominik
2010-07-25 17:33     ` Emin.shopper Martinian.shopper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=080323D2-8793-457B-A7F8-7A3B5DF45931@2bike4.com \
    --to=stephenl@2bike4.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).