Include all files under ~/Documents/org in agenda

Was previously only including direct children
This commit is contained in:
Camden Dixie O'Brien 2022-11-01 08:45:30 +00:00
parent ae41e92137
commit 0cdecd48cb

View File

@ -402,12 +402,16 @@
addict now so I do forsee it actually surviving (this will be funny addict now so I do forsee it actually surviving (this will be funny
to read in the future if not). to read in the future if not).
I want to show all TODOs in files in my top-level =~/org= directory I want to show all TODOs in =.org= files under my top-level
and any in this config itself. This is done by setting =~/Documents/org= directory and any in this config itself. This is
[[help:org-agenda-files][org-agenda-files]]. 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 #+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 #+end_src
Also I find it really very annoying that the the current window Also I find it really very annoying that the the current window