emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Problem with automatic recursive adding of org-agenda-files


From: Eric Abrahamsen
Subject: Re: [O] Problem with automatic recursive adding of org-agenda-files
Date: Wed, 23 Oct 2013 19:23:29 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Tor Eriksson <address@hidden> writes:

> Hello all,
>
> I have searched the web without finding a solution to the following
> problem:
>
> I am using this snippet in my .emacs.d (using emacs starterkit) to
> dynamically and recursively load all org files in the directory
> "important-directory" and any subdirectory of this directory:
>
> (load-library "find-lisp")
> (setq org-agenda-files (find-lisp-find-files "/home/user/important-directory" 
> "\.org$"))
>
> The snippet comes from http://orgmode.org/worg/org-faq.html
>
> This set-up has worked fine for more than two years; every time I add
> a new subdirectory with an .org file, this file gets picked up for
> the agenda.

I don't know why that's not working, but I'm doing this:

(setq org-agenda-files '("~/org/"))

And it works out fine. It will pick up all files under that directory
that match `org-agenda-file-regexp', which defaults as everything ending
in ".org". You might try that with "/home/user/important-directory/"?

FWIW, I don't even have a `find-lisp-find-files' function in my
installation (GNU Emacs 24.3.1).

HTH,
Eric




reply via email to

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