emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-agenda-files defvar directory "evaluation" ?


From: 'Mash
Subject: Re: [O] org-agenda-files defvar directory "evaluation" ?
Date: Mon, 10 Jun 2013 12:29:45 +0100
User-agent: Dynamic Internet Messaging Program (DIMP) H3 (1.0)

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 <address@hidden>:

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 via email to

[Prev in Thread] Current Thread [Next in Thread]