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
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -16,6 +16,11 @@
;; 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
(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