Set org-crypt vars sooner

In :init rather than :config, so users' (after! org-crypt ...) blocks
take precedence.
This commit is contained in:
Henrik Lissner 2019-07-08 21:17:04 +02:00
parent 5662b2c4b3
commit e645185907
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -868,7 +868,6 @@ compelling reason, so..."
:init :init
(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))
:config
(add-to-list 'org-tags-exclude-from-inheritance "crypt") (add-to-list 'org-tags-exclude-from-inheritance "crypt")
(setq org-crypt-key user-mail-address)) (setq org-crypt-key user-mail-address))