aboutsummaryrefslogtreecommitdiffstats
path: root/_spacemacs.d/config
diff options
context:
space:
mode:
Diffstat (limited to '_spacemacs.d/config')
-rw-r--r--_spacemacs.d/config/my-crypt.el33
1 files changed, 33 insertions, 0 deletions
diff --git a/_spacemacs.d/config/my-crypt.el b/_spacemacs.d/config/my-crypt.el
new file mode 100644
index 0000000..1720f8f
--- /dev/null
+++ b/_spacemacs.d/config/my-crypt.el
@@ -0,0 +1,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