chiark / gitweb /
el/dot-emacs.el: Don't turn on `flyspell-prog-mode' in text modes.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 10 Sep 2024 11:37:18 +0000 (12:37 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 10 Sep 2024 11:37:18 +0000 (12:37 +0100)
It has the result of inhibiting highlighting of misspellings outside
quoted text and comments, which is certainly not the intended effect.

el/dot-emacs.el

index 703d609a3dcebfcfbd6f24e4c4c8871f4cac2394..fddcf78e3530de243737e63d426d639128a48def 100644 (file)
@@ -1777,7 +1777,8 @@ (defun mdw-misc-mode-config ()
   (setq comment-column 40)
   (auto-fill-mode 1)
   (setq fill-column mdw-text-width)
   (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)
   (and (fboundp 'gtags-mode)
        (gtags-mode))
   (if (fboundp 'hs-minor-mode)