prelude icon indicating copy to clipboard operation
prelude copied to clipboard

Disable flyspell

Open exu opened this issue 14 years ago • 6 comments

I can't disable flyspell, i don't want it on my code files, is there any way to enable it for choosen modes only?

exu avatar Mar 23 '12 08:03 exu

You can disable flyspell (and whitespace for example) by default by putting this code somewhere in your personal/ dir:

(defun fix-prelude-prog-mode-defaults ()
  (prelude-turn-off-whitespace)
  (turn-off-flyspell))

(add-hook 'prelude-prog-mode-hook 'fix-prelude-prog-mode-defaults t)

bendowski avatar Mar 24 '12 12:03 bendowski

great it works!

exu avatar Mar 26 '12 06:03 exu

The only problem with this method is it only helps you in code files. Plain-text documents still have flyspell enabled. Solution?

holocronweaver avatar Sep 01 '12 14:09 holocronweaver

I turn it off with (remove-hook 'text-mode-hook 'prelude-turn-on-flyspell). message-mode-hook also includes it, but I don't write email in emacs.

hdhoang avatar Sep 01 '12 15:09 hdhoang

I get "Symbol's function definition is void: prelude-turn-off-whitespace" when I try doing this. What gives?

kgthegreat avatar Oct 22 '12 05:10 kgthegreat

@kgthegreat Consult the README ;-)

bbatsov avatar Oct 22 '12 12:10 bbatsov