From 8f17c0e4b04e77dc59f6c4a3daebb37f22c7857e Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 1 Apr 2023 21:43:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[Org]=20Add=20archive,=20roam=20and?= =?UTF-8?q?=20articles=20to=20agenda=20search=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 40d54be..23314ae 100644 --- a/config.org +++ b/config.org @@ -1259,9 +1259,17 @@ Set org agenda files. (setq org-agenda-files (list "~/org/tasks/")) (setq org-agenda-text-search-extra-files - (list "~/org/archive/" - "~/org/roam/" - "~/org/articles/")) + (directory-files-recursively "~/org/roam" "\.org$")) + +(setq org-agenda-text-search-extra-files + (append + org-agenda-text-search-extra-files + (directory-files-recursively "~/org/archive" "\.org$"))) + +(setq org-agenda-text-search-extra-files + (append + org-agenda-text-search-extra-files + (directory-files-recursively "~/org/articles" "\.org$"))) #+end_src Open org-agenda in current window.