* org-agenda-files defvar directory "evaluation" ?
@ 2013-06-07 16:16 'Mash
2013-06-10 11:29 ` 'Mash
0 siblings, 1 reply; 4+ messages in thread
From: 'Mash @ 2013-06-07 16:16 UTC (permalink / raw)
To: Emacs Org
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-agenda-files defvar directory "evaluation" ?
2013-06-07 16:16 org-agenda-files defvar directory "evaluation" ? 'Mash
@ 2013-06-10 11:29 ` 'Mash
2013-06-10 13:26 ` Nick Dokos
0 siblings, 1 reply; 4+ messages in thread
From: 'Mash @ 2013-06-10 11:29 UTC (permalink / raw)
Cc: Emacs Org
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-agenda-files defvar directory "evaluation" ?
2013-06-10 11:29 ` 'Mash
@ 2013-06-10 13:26 ` Nick Dokos
2013-06-10 14:00 ` 'Mash
0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2013-06-10 13:26 UTC (permalink / raw)
To: emacs-orgmode
'Mash <mashdot@toshine.net> writes:
> Resolved this via stackoverflow.
>
> (setq org-agenda-files (list org-dir))
>
Equivalently
(setq org-agenda-files `(,org-dir))
That's a backquote (on a US keyboard, it's the key to the left of the
1 key in the top row), not a normal quote. See
(info "(elisp) Backquote")
The (list org-dir) form is quite readable here, but when things get
more complicated, the backquote form tends to be more readable than
manufacturing list structure by hand.
> http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834
>
> Quoting 'Mash <mashdot@toshine.net>:
>
>> ...
>> But how would I do this with the variable?
>>
>> (setq org-agenda-files '(org-dir))
>> (setq org-agenda-files '(,(org-dir))
>>
--
Nick
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-agenda-files defvar directory "evaluation" ?
2013-06-10 13:26 ` Nick Dokos
@ 2013-06-10 14:00 ` 'Mash
0 siblings, 0 replies; 4+ messages in thread
From: 'Mash @ 2013-06-10 14:00 UTC (permalink / raw)
To: emacs-orgmode
Thanks,
I did use a comma to evaluate the variable but without the backtick
which I believed caused that "old style backticks" warning.
Quoting Nick Dokos <ndokos@gmail.com>:
> 'Mash <mashdot@toshine.net> writes:
>
>> Resolved this via stackoverflow.
>>
>> (setq org-agenda-files (list org-dir))
>>
>
> Equivalently
>
> (setq org-agenda-files `(,org-dir))
>
> That's a backquote (on a US keyboard, it's the key to the left of the
> 1 key in the top row), not a normal quote. See
>
> (info "(elisp) Backquote")
>
> The (list org-dir) form is quite readable here, but when things get
> more complicated, the backquote form tends to be more readable than
> manufacturing list structure by hand.
>
>
>> http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar-directory-evaluation/17021834
>>
>> Quoting 'Mash <mashdot@toshine.net>:
>>
>
>>> ...
>>> But how would I do this with the variable?
>>>
>>> (setq org-agenda-files '(org-dir))
>>> (setq org-agenda-files '(,(org-dir))
>>>
>
> --
> Nick
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-10 14:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 16:16 org-agenda-files defvar directory "evaluation" ? 'Mash
2013-06-10 11:29 ` 'Mash
2013-06-10 13:26 ` Nick Dokos
2013-06-10 14:00 ` 'Mash
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).