Remove (some) inherited text-mode spell checking

This commit is contained in:
TEC 2020-08-31 17:45:42 +08:00
parent 9121003ab7
commit 825f71cba1
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 4 additions and 0 deletions

View File

@ -282,6 +282,10 @@ and `lexic-dictionary-path'."
"Major mode to look up word through lexic.
\\{lexic-mode-map}
Turning on Text mode runs the normal hook `lexic-mode-hook'."
(setq-local text-mode-hook
(remove #'spell-fu-mode
(remove #'flyspell-mode
text-mode-hook)))
(setq buffer-read-only t)
(setq-local outline-regexp "\u200B+")
(setq-local outline-heading-end-regexp "\u2008"))