From 9029efea34a82f09de90a4b8089b8ad308333184 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Wed, 3 Feb 2021 18:24:00 -0500 Subject: [PATCH] Add encryption --- README.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index b84fbcf..235c158 100644 --- a/README.org +++ b/README.org @@ -625,7 +625,9 @@ Download and install [[https://orgroam.com][org-roam]], a plain text knowledge m #+begin_src emacs-lisp (use-package org-roam :hook (after-init . org-roam-mode) - :custom (org-roam-directory org-directory)) + :custom + (org-roam-directory org-directory) + (org-roam-encrypt-files t)) #+end_src Visualize the org-roam database with the server, available when the editor is running at http://localhost:8080 @@ -817,6 +819,15 @@ Create a keybinding to open the mail dashboard with =SPC m=. *** Agenda +Override ~org-agenda-file-regexp~ to include =.org.gpg= files. + +#+begin_src emacs-lisp +(unless (string-match-p "\\.gpg" org-agenda-file-regexp) + (setq org-agenda-file-regexp + (replace-regexp-in-string "\\\\\\.org" "\\\\.org\\\\(\\\\.gpg\\\\)?" + org-agenda-file-regexp))) +#+end_src + Configure agenda sources. #+begin_src emacs-lisp