summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-12-03 22:12:36 -0500
committerAmin Bandali <bandali@gnu.org>2019-12-03 22:12:36 -0500
commitbfda730d865610e210485a0a60c16e56c300965d (patch)
tree93899df7ab87b3a01a054554e3ff79fc5d5f8cb9 /.emacs.d/init.el
parent64b53575544eaed58507c52bb3034e695e2495d3 (diff)
downloadconfigs-bfda730d865610e210485a0a60c16e56c300965d.tar.gz
configs-bfda730d865610e210485a0a60c16e56c300965d.tar.xz
configs-bfda730d865610e210485a0a60c16e56c300965d.zip
emacs: gnus: always sign messages
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 2b84887..d824423 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -2507,8 +2507,9 @@ https://csclub.uwaterloo.ca/~abandali")
(address "bandali@csclub.uwaterloo.ca")
(signature b/csc-signature)
(gcc "nnimap+csc:Sent"))))
- ;; :hook (gnus-message-setup . mml-secure-message-sign)
- )
+ :hook (gnus-message-setup . (lambda ()
+ (unless (mml-secure-is-encrypted-p)
+ (mml-secure-message-sign)))))
(use-feature gnus-topic
:hook (gnus-group-mode . gnus-topic-mode)