diff options
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 |
