summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-09-18 20:42:50 +0100
committerjao <jao@gnu.org>2025-09-18 20:42:50 +0100
commit5d26690a6097739ca894678e8d5f6f3e61d7dd84 (patch)
tree340edaad5a856aca94fb3b461ff62388e43c7519
parent5ccb0abcb3c1eecefc31cc88911ff520f4c25709 (diff)
downloadelibs-5d26690a6097739ca894678e8d5f6f3e61d7dd84.tar.gz
elibs-5d26690a6097739ca894678e8d5f6f3e61d7dd84.tar.bz2
auth-source nits
-rw-r--r--init.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/init.el b/init.el
index 230fa33..245a33b 100644
--- a/init.el
+++ b/init.el
@@ -335,11 +335,13 @@
;;; Crypto
;;;; PGP, EPG, passwords
-(setq auth-source-debug nil)
-
-(require 'auth-source)
-(add-to-list 'auth-source-protocols '(local "local"))
-(setq auth-sources '("~/.emacs.d/authinfo.gpg" "~/.netrc"))
+(use-package auth-source
+ :init
+ (setq auth-source-debug nil
+ auth-sources '("~/.emacs.d/authinfo.gpg" "~/.netrc"))
+ :config
+ (add-to-list 'auth-source-protocols '(local "local"))
+ (jao-when-darwin (add-to-list 'auth-sources 'macos-keychain-generic)))
(use-package epa-file
:demand t
@@ -1326,6 +1328,7 @@
(add-hook 'nov-mode-hook #'jao-nov-register-session))
;;; Email
+
(require 'jao-custom-email)
;;; Shells and terms