fix(spell): disable flyspell-lazy in message-mode

Without this, flyspell is never started in these buffer (e.g. when
composing mail w/ Notmuch).

Fix: #3357
This commit is contained in:
Henrik Lissner 2022-02-10 19:48:16 +01:00
parent 8e691e810f
commit b7841e3659

View file

@ -242,4 +242,7 @@ e.g. proselint and langtool."
:config :config
(setq flyspell-lazy-idle-seconds 1 (setq flyspell-lazy-idle-seconds 1
flyspell-lazy-window-idle-seconds 3) flyspell-lazy-window-idle-seconds 3)
;; Fix #3357: flyspell-lazy inhibits flyspell entirely in message-mode
;; derivatives (e.g. for notmuch users).
(setq-hook! 'message-mode-hook flyspell-lazy-disallow-buffers nil)
(flyspell-lazy-mode +1))) (flyspell-lazy-mode +1)))