From bfda730d865610e210485a0a60c16e56c300965d Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Tue, 3 Dec 2019 22:12:36 -0500 Subject: [PATCH 1/1] emacs: gnus: always sign messages --- .emacs.d/init.el | 5 +++-- 1 file 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) -- 2.20.1