emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: 'Mash <mashdot@toshine.net>
Cc: Emacs Org <emacs-orgmode@gnu.org>
Subject: Re: org-agenda-files defvar directory "evaluation" ?
Date: Mon, 10 Jun 2013 12:29:45 +0100	[thread overview]
Message-ID: <20130610122945.17342ex1dq8imf8k@webmail.tuffmail.net> (raw)
In-Reply-To: <20130607161649.GA19899@grace.toshine.net>

Resolved this via stackoverflow.

(setq org-agenda-files (list org-dir))

http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834

Quoting 'Mash <mashdot@toshine.net>:

> 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
>

'to life is doxology | http://toshine.org

  reply	other threads:[~2013-06-10 11:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 16:16 org-agenda-files defvar directory "evaluation" ? 'Mash
2013-06-10 11:29 ` 'Mash [this message]
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=20130610122945.17342ex1dq8imf8k@webmail.tuffmail.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).