[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: FAQ incorrect
From: |
Benjamin Andresen |
Subject: |
[Orgmode] Re: FAQ incorrect |
Date: |
Tue, 27 Oct 2009 15:50:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hey W.,
"W.Bentley MacLeod" <address@hidden> writes:
> FAQ on how to include all org files in a directory is incorrect (view 85).
> Correct code is:
> (setq org-agenda-files (file-expand-wildcards "~/org-files/*.org"))
You are right.
This isn't valid: (setq org-agenda-files "~/my/special/path/org/")
M-x org-agenda RET will reply with: `org-agenda-files' cannot be a single
directory
I propose the following for the FAQ:
(setq org-agenda-directory "~/Org/")
(setq org-agenda-files (directory-files (expand-file-name org-agenda-directory)
t "^[^\.][^#][[:alnum:]]+\.org$"))
That will add every org file. I've had the problem of normal glob
expansion to include emacs lock files that are in this format:
.#todo.org
I was under the impression that org-agenda-directory set to
~/my/special/path/org/ would Just Work(tm) because if you do C-c a a v A
it pulls in the right files for me.
> best bm
br,
benny