summaryrefslogtreecommitdiff
path: root/modules/epa-config.el
blob: 8d9d8f13d858af8d7a8a5749477ea9e4c5adcd49 (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
;;; epa-config.el --- EasyPG Configuration -*- lexical-binding: t; -*-

;;; Commentary:
;;

;;; Code:

;; -------------------------------- Auth Sources -------------------------------
;; auth sources settings

(use-package auth-source
  :ensure nil ;; built in
  :defer .5
  :config
  (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.