From: Mark Wooding Date: Tue, 10 Sep 2024 11:37:18 +0000 (+0100) Subject: el/dot-emacs.el: Don't turn on `flyspell-prog-mode' in text modes. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/340545ab55c2f9cad300a7280a8e2877e4f1f9b1 el/dot-emacs.el: Don't turn on `flyspell-prog-mode' in text modes. It has the result of inhibiting highlighting of misspellings outside quoted text and comments, which is certainly not the intended effect. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 703d609..fddcf78 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -1777,7 +1777,8 @@ (defun mdw-misc-mode-config () (setq comment-column 40) (auto-fill-mode 1) (setq fill-column mdw-text-width) - (flyspell-prog-mode) + (unless (derived-mode-p 'text-mode) + (flyspell-prog-mode)) (and (fboundp 'gtags-mode) (gtags-mode)) (if (fboundp 'hs-minor-mode)