branch: externals/autocrypt
commit 211cb302dc99c51a89f1a25c31d138649f562df0
Author: Philip K <[email protected]>
Commit: Philip K <[email protected]>
Add autocrypt-load-system
Each system can define this method to load everything it need to
operate.
---
autocrypt.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/autocrypt.el b/autocrypt.el
index 5fb18d5532..ef65a0f603 100644
--- a/autocrypt.el
+++ b/autocrypt.el
@@ -102,6 +102,9 @@ Every member of this list has to be an instance of the
;;; MUA TRANSLATION LAYER
+(cl-defgeneric autocrypt-load-system (mode)
+ "Load autocrypt methods for MODE."
+ (ignore mode))
(cl-defgeneric autocrypt-mode-hooks (mode)
"Return a list of hooks for MODE that process headers.")
@@ -502,6 +505,7 @@ mode."
(if autocrypt-mode
(progn
(autocrypt-load-data)
+ (autocrypt-load-system major-mode)
(autocrypt-install major-mode))
(autocrypt-uninstall major-mode)))