diff options
| author | Blake Romero <blake@blkrom.com> | 2025-07-11 17:49:52 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-07-11 17:49:52 +0100 |
| commit | d2a4af96d78fbcb86fd31cc317faa927853918e4 (patch) | |
| tree | e2054c53d0f04f5fd182eb71789c74d32647cd3f /emacs-config.org | |
| parent | 7e85546b14a75c98a314b2fe16e5dab04f27a720 (diff) | |
Set org agenda directory and files
Diffstat (limited to 'emacs-config.org')
| -rw-r--r-- | emacs-config.org | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
