fix(org): revise org-crypt init
The `org-decrypt-entry` hook is redundant with a hook org-crypt already adds to `org-fold-reveal-start-hook` at load time. Fix: #7835 Fix: #6250
This commit is contained in:
parent
4788dd60fe
commit
36a1cda724
1 changed files with 2 additions and 5 deletions
|
@ -1153,15 +1153,12 @@ between the two."
|
|||
(use-package! org-crypt ; built-in
|
||||
:when (modulep! +crypt)
|
||||
:commands org-encrypt-entries org-encrypt-entry org-decrypt-entries org-decrypt-entry
|
||||
:hook (org-reveal-start . org-decrypt-entry)
|
||||
:hook (org-load . org-crypt-use-before-save-magic)
|
||||
: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)
|
||||
(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))))
|
||||
(after! org (add-to-list 'org-tags-exclude-from-inheritance "crypt")))
|
||||
|
||||
|
||||
(use-package! org-clock ; built-in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue