I have a project base folder, ~/prj
, inside of which I have many individual projects, 2014_prj1
, 2014_prj2
, ..., inside of which I have, among others, a doc
folder. The layout looks like this:
~/prj
~/prj/2014_prj1
~/prj/2014_prj1/README.org
~/prj/2014_prj1/data
~/prj/2014_prj1/doc
~/prj/2014_prj2
~/prj/2014_prj2/README.org
~/prj/2014_prj2/data
~/prj/2014_prj2/doc
Now I'd like to add all project directories (2014_prjX
) to org-agenda-files
, as well as all doc
subdirectories of the project directories. The data
folders should not be part of org-agenda-files
, because they can possibly contain 10000s of files.
How can I achieve this? I tried a simple
(setq org-agenda-files (quote ("~/doc/notes"
"~/.emacs.d"
"~/prj/*/doc"
)
)
but this gives me the error
Non-existing agenda file ~/prj/*/doc