aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sojka <sojkam1@fel.cvut.cz>2015-11-03 22:02:12 +0100
committerDavid Bremner <david@tethera.net>2015-11-09 22:25:25 -0400
commit55fb7da65012dc56cbf5e72df11f06db6f65cd7c (patch)
tree2c797813a24211cd354d10919e1bb4eed5008cbc
parentcbf2448bb1d58fa173fa2662f41c63d8a1717f39 (diff)
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.
-rw-r--r--emacs/notmuch-mua.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index fd98ea41..466edd7e 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -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)