how do I disable Flyspell?

6k views Asked by At

It sounds easy but I can't fix it: I want to permanently disable automatic spell-checking in emacs. There must be a simple line for my init.el. Can somebody help me?

6

There are 6 answers

4
offby1 On BEST ANSWER

Figure out why it's on in the first place (it isn't enabled by default), then fix that. Either your init file is turning it on, or else some system-wide init file is. Read about those files: http://www.gnu.org/software/emacs/manual/html_node/emacs/Init-File.html

2
Hamza Yerlikaya On
(flyspell-mode 0)
0
phils On

From a brief look, the simplest way I can see is to redefine the function:

(eval-after-load "flyspell"
  '(defun flyspell-mode (&optional arg)))

or you could use advice to force the argument to always be -1 (see C-h f turn-off-flyspell), but that would be slightly more complex and less efficient for no good reason.

If you want to know what is running it in the first place, you could use M-x debug-on-entry flyspell-mode, which will show a stack trace when the function is called (q to exit the debugger; C-h m to list other commands; M-: (info "(elisp)debugger") for help). Use M-x cancel-debug-on-entry to remove that breakpoint.

0
Felipe On

Using Emacs graphical mode you can just right click above "Fly" minor mode bellow and select "Turn Off minor mode" like this:

Just right click above Fly

0
Andreas Spindler On

In my case flyspell-mode has been gaining ground in the .emacs.desktop file.

This was not the first time that desktop-mode causes pain in restoring obsolete things. In this case it restored all modes on a per-file basis, although in .emacs.el I had already disabled flyspell-mode and flyspell-prog-mode everywhere.

Solution: either edit the .emacs.desktop file or delete it.

0
boulder_ruby On

I found mine in ~/.emacs.d/usk/text.el

I deleted the block of code having to do with FlySpell and closed emacs.

After reopening emacs, I still saw the spelling error (red underline). However, I simply deleted and retyped the "misspelled" words and then, emacs didn't underline. Problem solved.

I'm running Debian.