emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: FAQ incorrect


From: W.Bentley MacLeod
Subject: [Orgmode] Re: FAQ incorrect
Date: Tue, 27 Oct 2009 11:05:30 -0400 (EDT)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

Yes, that is the error I got.
I like your solution.
____________________________

Professor W. Bentley MacLeod
Columbia University in the City of New York, NY 10027
http://www.columbia.edu/~wbm2103/
____________________________

On Tue, 27 Oct 2009, Benjamin Andresen wrote:

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







reply via email to

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