emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: 'Mash <mashdot@toshine.net>
To: Emacs Org <emacs-orgmode@gnu.org>
Subject: org-agenda-files defvar directory "evaluation" ?
Date: Fri, 7 Jun 2013 17:16:50 +0100	[thread overview]
Message-ID: <20130607161649.GA19899@grace.toshine.net> (raw)

Sorry not quite sure how to phrase the problem in the subject line there.

I have the following setup in my .emacs ...

(defvar org-dir "/home/mash/read/org/")

And use it around such as ...

(setq org-directory org-dir)
(setq org-default-notes-file (concat org-dir "mash.org"))

Now I understand that you can specify a directory such as ...

(setq org-agenda-files '("/home/mash/read/org/"))

But how would I do this with the variable?

(setq org-agenda-files '(org-dir))
(setq org-agenda-files '(,(org-dir))

Any ideas as I would like to use it in my capture templates too ...

(setq org-capture-templates
      '(
	("t" "Test" entry (file+headline (concat org-dir "test.org" "test")
	 "* %?")
        ))



Many thanks,

'Mash

             reply	other threads:[~2013-06-07 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 16:16 'Mash [this message]
2013-06-10 11:29 ` org-agenda-files defvar directory "evaluation" ? 'Mash
2013-06-10 13:26   ` Nick Dokos
2013-06-10 14:00     ` 'Mash

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=20130607161649.GA19899@grace.toshine.net \
    --to=mashdot@toshine.net \
    --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).