Fix #3123: wrong-type-arg stringp error from org-encrypt-string
Due to upstream issue (read comments).
This commit is contained in:
parent
85fb59acca
commit
043a561565
1 changed files with 13 additions and 1 deletions
|
@ -819,7 +819,19 @@ compelling reason, so..."
|
||||||
(after! org
|
(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)))
|
||||||
|
:config
|
||||||
|
(after! epa
|
||||||
|
;; HACK Fix #3123: `org-encrypt-string' expects `epa-file-encrypt-to' to be
|
||||||
|
;; a string, but its docs say it can be a string or list of strings,
|
||||||
|
;; and Doom sets it to a list of strings by default. Remove this when
|
||||||
|
;; this is addressed upstream.
|
||||||
|
;; TODO Report this upstream.
|
||||||
|
(unless org-crypt-key
|
||||||
|
(setq org-crypt-key
|
||||||
|
(if (listp epa-file-encrypt-to)
|
||||||
|
(car epa-file-encrypt-to)
|
||||||
|
epa-file-encrypt-to)))))
|
||||||
|
|
||||||
|
|
||||||
(use-package! org-clock ; built-in
|
(use-package! org-clock ; built-in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue