From 5d26690a6097739ca894678e8d5f6f3e61d7dd84 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 18 Sep 2025 20:42:50 +0100 Subject: auth-source nits --- init.el | 13 ++++++++----- 1 file 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 -- cgit v1.2.3