Activate flyspell-mode in specific modes

yaml-mode is derived from text-mode, rather than prog or conf-mode. This
may be true for other major modes, so we must be more judicious about
where we activate flyspell-mode.
This commit is contained in:
Henrik Lissner 2020-01-20 19:20:34 -05:00
parent e3ff1f25b4
commit fb24a8deec
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 11 additions and 5 deletions

View file

@ -91,9 +91,6 @@
(defadvice! +mu4e--refresh-current-view-a (&rest _)
:after #'mu4e-mark-execute-all (mu4e-headers-rerun-search))
(when (featurep! :checkers spell)
(add-hook 'mu4e-compose-mode-hook #'flyspell-mode))
;; Wrap text in messages
(setq-hook! 'mu4e-view-mode-hook truncate-lines nil)