Fix org-crypt not running when saving org files
This commit is contained in:
parent
b51c4fc8b3
commit
5a54ef1f9f
1 changed files with 4 additions and 4 deletions
|
@ -813,10 +813,10 @@ compelling reason, so..."
|
||||||
;; org-crypt falls back to CRYPTKEY property then `epa-file-encrypt-to', which
|
;; 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.
|
;; is a better default than the empty string `org-crypt-key' defaults to.
|
||||||
(defvar org-crypt-key nil)
|
(defvar org-crypt-key nil)
|
||||||
:config
|
(after! org
|
||||||
(add-to-list 'org-tags-exclude-from-inheritance "crypt")
|
(add-to-list 'org-tags-exclude-from-inheritance "crypt")
|
||||||
(add-hook! 'org-mode-hook
|
(add-hook! 'org-mode-hook
|
||||||
(add-hook 'before-save-hook 'org-encrypt-entries nil t)))
|
(add-hook 'before-save-hook 'org-encrypt-entries nil t))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! org-clock ; built-in
|
(use-package! org-clock ; built-in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue