Fix #3123: wrong-type-arg stringp error from org-encrypt-string

Due to upstream issue (read comments).
This commit is contained in:
Henrik Lissner 2020-05-14 15:41:45 -04:00
parent 85fb59acca
commit 043a561565
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -819,7 +819,19 @@ compelling reason, so..."
(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))))
(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