diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index d620e939f..ec7bfd4fd 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -809,11 +809,14 @@ compelling reason, so..." (use-package! org-crypt ; built-in :commands org-encrypt-entries org-encrypt-entry org-decrypt-entries org-decrypt-entry :hook (org-reveal-start . org-decrypt-entry) + :preface + ;; org-crypt falls back to CRYPTKEY property then `epa-file-encrypt-to', which + ;; is a better default than the empty string `org-crypt-key' defaults to. + (defvar org-crypt-key nil) :config - (add-hook! 'org-mode-hook - (add-hook 'before-save-hook 'org-encrypt-entries nil t)) (add-to-list 'org-tags-exclude-from-inheritance "crypt") - (setq org-crypt-key user-mail-address)) + (add-hook! 'org-mode-hook + (add-hook 'before-save-hook 'org-encrypt-entries nil t))) (use-package! org-clock ; built-in