diff --git a/config.org b/config.org index c2cd1da..1fd37c4 100644 --- a/config.org +++ b/config.org @@ -402,12 +402,16 @@ addict now so I do forsee it actually surviving (this will be funny to read in the future if not). - I want to show all TODOs in files in my top-level =~/org= directory - and any in this config itself. This is done by setting - [[help:org-agenda-files][org-agenda-files]]. + I want to show all TODOs in =.org= files under my top-level + =~/Documents/org= directory and any in this config itself. This is + done by enumerating all files under =~/Documents/org= with + [[help:directory-files-recursively][directory-files-recursively]], then setting [[help:org-agenda-files][org-agenda-files]] to this, + along with this config's path. #+begin_src emacs-lisp - (setq org-agenda-files '("~/Documents/org" "~/.emacs.d/config.org")) + (let ((org-docs + (directory-files-recursively "~/Documents/org" ".+\.org$"))) + (setq org-agenda-files `("~/.emacs.d/config.org" ,@org-docs))) #+end_src Also I find it really very annoying that the the current window