branch: externals/autocrypt
commit d77140654405cabd007621606aca9beb512dff7a
Author: Erik L. Arneson <[email protected]>
Commit: Philip K <[email protected]>
Recognize mu4e modes in `autocrypt-get-mua'
---
autocrypt.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/autocrypt.el b/autocrypt.el
index 9019b15c66..e3a27135d2 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -162,7 +162,9 @@ The key should identify a record in the
'rmail)
((derived-mode-p 'message-mode)
'message)
- (t (user-error "MUA not supported"))))
+ ((derived-mode-p 'mu4e-main-mode 'mu4e-view-mode)
+ 'mu4e)
+ (t (user-error "MUA not supported: %s" major-mode))))
(defsubst autocrypt-mua-func (msg)
"Return function behind MSG for major mode."