Enforce encrypted authinfo & store in doom-etc-dir

Plaintext authinfo should not be the default.
This commit is contained in:
Henrik Lissner
2018-06-01 17:10:30 +02:00
parent 48ee4ff71e
commit 1938a0d253

View File

@ -16,6 +16,11 @@
;; Config ;; Config
;; ;;
;; Don't store authinfo in non-encrypted files!
(defvar auth-sources
(list (expand-file-name "authinfo.gpg" doom-etc-dir)
"~/.authinfo.gpg"))
(after! epa (after! epa
(setq epa-file-encrypt-to (or epa-file-encrypt-to user-mail-address) (setq epa-file-encrypt-to (or epa-file-encrypt-to user-mail-address)
;; With GPG 2.1, this forces gpg-agent to use the Emacs minibuffer to ;; With GPG 2.1, this forces gpg-agent to use the Emacs minibuffer to