aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d/config/my-crypt.el
blob: 1720f8f56c4f811582e8bf5d46abec5cb3b4f4f4 (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
32
33
;;; my-crypt.el --- Custom sign/encrypt configurations
;; -*- mode: emacs-lisp -*-
;; vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=lisp:
;;
;; Aaron LI
;; Created: 2017-10-15
;;

;;; Commentary:
;; Custom sign/encrypt configurations
;;

;;; Code:

;; Default Encrypt
;; https://www.emacswiki.org/emacs/DefaultEncrypt
;; https://www.emacswiki.org/emacs/download/jl-encrypt.el
(require 'jl-encrypt)

;; Ask for the signing key
(setq mm-sign-option 'guided)

;; Use message sender to find the OpenPGP key to sign with
(setq mml-secure-openpgp-sign-with-sender t)

;; Also encrypt to the message sender, otherwise, the send message
;; *cannot* be decrypted by the sender!
(setq mml-secure-openpgp-encrypt-to-self t)


(provide 'my-crypt)

;;; my-crypt.el ends here