From ca6805769accf4d23c97683e9e293887f0617961 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 20 Oct 2017 08:30:30 +0800 Subject: spacemacs: Add my-crypt.el (with DefaultEncrypt package) jl-encrypt.el: Default Encrypt: https://www.emacswiki.org/emacs/DefaultEncrypt --- _spacemacs.d/config/my-crypt.el | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 _spacemacs.d/config/my-crypt.el (limited to '_spacemacs.d/config') 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 -- cgit v1.2.2