Emacs: Move EPA config to main so that it's loaded in time by mu4e
parent
9540330538
commit
40dd85a7a1
|
@ -6,6 +6,9 @@
|
|||
;;; modules, runs their hooks and concludes with `eshell-first-time-mode-hook'
|
||||
;;; (for the first session only) and `eshell-mode-hook'.
|
||||
|
||||
;; Emacs pinentry for GPG.
|
||||
(require 'main)
|
||||
|
||||
;;; REVIEW: ANSI coloring goes wrong sometimes. Quite often with emerge/eix.
|
||||
;;; Fixed in #27407.
|
||||
(require 'patch-eshell)
|
||||
|
@ -100,12 +103,6 @@
|
|||
("sudo" "wifi-menu") ; Arch Linux
|
||||
("sudo" "vi" "visudo"))))
|
||||
|
||||
;;; Support for Emacs' pinentry
|
||||
;;; TODO: gpg-agent seems to be misconfigured for mu4e at least:
|
||||
;;; See https://github.com/djcb/mu/issues/829.
|
||||
(setq epa-pinentry-mode 'loopback) ; This will fail if gpg>=2.1 is not available.
|
||||
(pinentry-start)
|
||||
|
||||
;;; Alias management possibilities:
|
||||
;;; - Version eshell-alias and store it in user-emacs-directory. Simplest and
|
||||
;;; fastest, but aliases cannot be included conditionnaly, e.g. depending on the
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
;;; See https://github.com/djcb/mu/issues/454#issuecomment-320616279.
|
||||
;;; TODO: <tab> should go to next link in text e-mails too.
|
||||
|
||||
;; Emacs pinentry for GPG.
|
||||
(require 'main)
|
||||
|
||||
(when (require 'mu4e-maildirs-extension nil t)
|
||||
(mu4e-maildirs-extension))
|
||||
|
||||
|
|
|
@ -352,4 +352,9 @@
|
|||
(when fortune
|
||||
(setq initial-scratch-message fortune)))
|
||||
|
||||
;;; Support for Emacs pinentry.
|
||||
;;; Required for eshell/sudo and everything relying on GPG queries.
|
||||
(setq epa-pinentry-mode 'loopback) ; This will fail if gpg>=2.1 is not available.
|
||||
(pinentry-start)
|
||||
|
||||
(provide 'main)
|
||||
|
|
Loading…
Reference in New Issue