emacs: Make notmuch-message-mode play nicely with flyspell

Flyspell mode uses a special setting for message-mode to not
spell-check message headers except Subject. Apply this setting also to
notmuch-message-mode.
This commit is contained in:
Michal Sojka 2015-11-03 22:02:12 +01:00 committed by David Bremner
parent cbf2448bb1
commit 55fb7da650

View file

@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
(when notmuch-address-command (when notmuch-address-command
(notmuch-address-setup))) (notmuch-address-setup)))
(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
(define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit) (define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)
(define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send) (define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send)