~pkal/autocrypt

dd400cbbdfa14e6127f29cf9b562a8948ff3fafd — Philip Kaludercic 9 months ago 9e393f8
Prefer mu4e-view-rendered-hook if bound

Thanks to Thierry Volpiatto for notifying me to this change:
https://lists.sr.ht/~pkal/public-inbox/%3C875ye6bh0r.fsf%40posteo.net%3E
1 files changed, 4 insertions(+), 1 deletions(-)

M autocrypt-mu4e.el
M autocrypt-mu4e.el => autocrypt-mu4e.el +4 -1
@@ 25,7 25,10 @@
;;;###autocrypt
(defun autocrypt-mu4e--install ()
  "Install autocrypt hooks for mu4e."
  (add-hook 'mu4e-view-mode-hook #'autocrypt-process-header nil t)
  (add-hook (if (boundp 'mu4e-view-rendered-hook)
                'mu4e-view-rendered-hook
              'mu4e-view-mode-hook)
            #'autocrypt-process-header nil t)
  (add-hook 'mu4e-compose-mode-hook #'autocrypt-compose-setup nil t))

(defun autocrypt-mu4e--uninstall ()