emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/autocrypt 050d496716 32/94: Fix mu4e setup when composi


From: ELPA Syncer
Subject: [elpa] externals/autocrypt 050d496716 32/94: Fix mu4e setup when composing new messages
Date: Sun, 26 Mar 2023 07:57:58 -0400 (EDT)

branch: externals/autocrypt
commit 050d4967162dff6de5ef480db8a22c5896d483c7
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Philip K <philipk@posteo.net>

    Fix mu4e setup when composing new messages
---
 autocrypt-mu4e.el | 6 ++++--
 autocrypt.el      | 7 ++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/autocrypt-mu4e.el b/autocrypt-mu4e.el
index dc2abaa88c..d920dd3cb1 100644
--- a/autocrypt-mu4e.el
+++ b/autocrypt-mu4e.el
@@ -27,11 +27,13 @@
 ;;;###autoload
 (defun autocrypt-mu4e-install ()
   "Install autocrypt hooks for mu4e."
-  (add-hook 'mu4e-view-mode-hook #'autocrypt-process-header))
+  (add-hook 'mu4e-view-mode-hook #'autocrypt-process-header)
+  (add-hook 'mu4e-compose-mode-hook #'autocrypt-compose-setup))
 
 (defun autocrypt-mu4e-uninstall ()
   "Remove autocrypt hooks for mu4e."
-  (remove-hook 'mu4e-view-mode-hook #'autocrypt-process-header))
+  (remove-hook 'mu4e-view-mode-hook #'autocrypt-process-header)
+  (remove-hook 'mu4e-compose-mode-hook #'autocrypt-compose-setup))
 
 (defun autocrypt-mu4e-header (field)
   "Ask mu4e to return header FIELD."
diff --git a/autocrypt.el b/autocrypt.el
index 6de6aa8801..965f661aae 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -109,7 +109,12 @@ Every member of this list has to be an instance of the
     (mu4e
      :install autocrypt-mu4e-install
      :uninstall autocrypt-mu4e-uninstall
-     :header autocrypt-mu4e-header)
+     :header autocrypt-mu4e-header
+     :add-header autocrypt-message-add-header
+     :remove-header message-remove-header
+     :sign-encrypt autocrypt-message-sign-encrypt
+     :secure-attach autocrypt-message-secure-attach
+     :encrypted-p mml-secure-is-encrypted-p)
     (message
      :install autocrypt-message-install
      :uninstall autocrypt-message-uninstall



reply via email to

[Prev in Thread] Current Thread [Next in Thread]