emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] FAQ incorrect


From: Carsten Dominik
Subject: Re: [Orgmode] FAQ incorrect
Date: Tue, 27 Oct 2009 16:21:05 +0100


On Oct 27, 2009, at 3:56 PM, Nick Dokos wrote:

W.Bentley MacLeod <address@hidden> wrote:

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


If you are talking about this entry:

   How can include all org files in a directory in my agenda?

You can simply set the value of org-agenda-files to a directory rather than a list of files:

   (setq org-agenda-files "~/my/special/path/org/")

Does that really work?  I believe it should be

   (setq org-agenda-files '("~/my/special/path/org/"))

i.e. each member of this list can be a file or a
directory.  If it is a directory, the org files in
it will be used.

- Carsten


it is correct as it stands: unless you are using a really ancient
version, org figures out that it's a directory and sets org-agenda- files
to the contents of the directory (filtered by org-agenda-file-regexp,
which by default matches filenames ending in ".org").

HTH,
Nick



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

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