diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-12 11:47:26 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-12 11:47:26 -0500 |
| commit | 092304d9e0ccc37cc0ddaa9b136457e56a1cac20 (patch) | |
| tree | ea81999b8442246c978b364dd90e8c752af50db5 /modules/auth-config.el | |
changing repositories
Diffstat (limited to 'modules/auth-config.el')
| -rw-r--r-- | modules/auth-config.el | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/auth-config.el b/modules/auth-config.el new file mode 100644 index 00000000..a42bd52a --- /dev/null +++ b/modules/auth-config.el @@ -0,0 +1,45 @@ +;; auth-config.el --- Configuration for Authentication Utilities -*- lexical-binding: t; coding: utf-8; -*- +;; author Craig Jennings <c@cjennings.net> + +;;; Commentary: +;; +;; Configuration for Emacs authentication and GPG integration: + +;; • auth-source +;; – Forces use of your default authinfo file +;; – Disable external GPG agent in favor of Emacs’s own prompt +;; – Enable auth-source debug messages + +;; • Easy PG Assistant (epa) +;; – Force using the ‘gpg2’ executable for encryption/decryption operations + +;;; Code: + +(require 'user-constants) ;; defines authinfo-file location + +;; -------------------------------- Auth Sources ------------------------------- +;; auth sources settings + +(use-package auth-source + :ensure nil ;; built in + :demand t ;; load this package immediately + :config + (setenv "GPG_AGENT_INFO" nil) ;; disassociate with external gpg agent + (setq auth-sources `(,authinfo-file)) ;; use authinfo.gpg (see user-constants.el) + (setq auth-source-debug t)) ;; echo debug info to Messages + +;; ----------------------------- Easy PG Assistant ----------------------------- +;; Key management, cryptographic operations on regions and files, dired +;; integration, and automatic encryption/decryption of *.gpg files. + +(use-package epa + :ensure nil ;; built-in + :demand t + :config + (epa-file-enable) + ;; (setq epa-pinentry-mode 'loopback) ;; emacs request passwords in minibuffer + (setq epg-gpg-program "gpg2")) ;; force use gpg2 (not gpg v.1) + + +(provide 'auth-config) +;;; auth-config.el ends here. |
