]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
emacs: Make notmuch-message-mode play nicely with flyspell
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 3 Nov 2015 21:02:12 +0000 (22:02 +0100)
committerDavid Bremner <david@tethera.net>
Tue, 10 Nov 2015 02:25:25 +0000 (22:25 -0400)
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.

emacs/notmuch-mua.el

index fd98ea4195e4faf7c34a0333a71accdb56c6e5b2..466edd7eb23cfca98b19401bd51bd42970f1163e 100644 (file)
@@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
   (when notmuch-address-command
     (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-s") #'notmuch-mua-send)