blob: 0e3972a075e4a91ab9649d17b91b0eea96042f3b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 | ;;; epa-config.el --- EasyPG Configuration -*- lexical-binding: t; -*-
;;; Commentary:
;;
;;; Code:
;; -------------------------------- Auth Sources -------------------------------
;; auth sources settings
(use-package auth-source
  :ensure nil ;; built in
  :demand t ;; load this package early
  :config
  (setq auth-sources '("~/.authinfo.gpg"))
  ;;  (setq auth-sources '((:source "~/.authinfo.gpg")))
  (setenv "GPG_AGENT_INFO" nil) ;; emacs use internal prompt, not gpg agent
  (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
  :defer .5
  :config
  (setq epg-gpg-program "gpg2")) ;; force use gpg2 (not gpg v.1)
(provide 'epa-config)
;;; epa-config.el ends here.
 |