From d2a4af96d78fbcb86fd31cc317faa927853918e4 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Fri, 11 Jul 2025 17:49:52 +0100 Subject: Set org agenda directory and files --- emacs-config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'emacs-config.org') diff --git a/emacs-config.org b/emacs-config.org index 0884401..e5ad04b 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -648,6 +648,20 @@ Add =doc= LaTeX class. :header-args:elisp: :tangle no :noweb-ref org-agenda-settings :END: +Match encrypted org files for agenda. +#+begin_src elisp + (setq-default org-agenda-file-regexp "^[^.#].+\\.org\\(?:\\.gpg\\)?$") +#+end_src + +Set agenda directory location and add files to agenda. +#+begin_src elisp + (let ((dir (expand-file-name "agenda/" org-directory))) + (if (file-exists-p dir) + (setq-default org-agenda-files (directory-files-recursively + dir org-agenda-file-regexp)) + (warn "Org-agenda directory '%s' not found" dir))) +#+end_src + Set agenda header formats. #+begin_src elisp (setq-default -- cgit