Fix org-crypt not running when saving org files

This commit is contained in:
Henrik Lissner 2020-05-02 17:52:22 -04:00
parent b51c4fc8b3
commit 5a54ef1f9f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -813,10 +813,10 @@ compelling reason, so..."
;; 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-to-list 'org-tags-exclude-from-inheritance "crypt")
(add-hook! 'org-mode-hook
(add-hook 'before-save-hook 'org-encrypt-entries nil t)))
(after! org
(add-to-list 'org-tags-exclude-from-inheritance "crypt")
(add-hook! 'org-mode-hook
(add-hook 'before-save-hook 'org-encrypt-entries nil t))))
(use-package! org-clock ; built-in