I am facing the following problem: Org mode has the customizable variable org-agenda-files
. The files listed by absolute path under this variable are used for building the org agenda window. If an element in the list is a directory, then all .org
files matching the org-agenda-regex
are processed to build the agenda view. On the other hand there is also another customizable variable: org-directory
. Shockingly though, if org-agenda-files
is undefined, the agenda view does not try to use the matching .org
files under org-directory
. Also, listing the paths of the agenda files relative to org-directory
in org-agenda-files
is not accepted, as it complains that the files are not found.
My question is, is there an reasonably elegant way to make use of the org-directory
in the lookup of agenda files, either by using it as the default to look for all .org files, or to describe the agenda files list with relative paths to org-directory
?