Emacs: Spell Checking

By Xah Lee. Date: . Last updated: .

Alt+x ispell-wordAlt+$】 to check spelling of current word.

Alt+x flyspell-buffer to spell check whole buffer.

Move cursor to a misspelled word, then ispell-word to correct it.

Note: spell checking requires the linux command ispell installed.

emacs spell checking 2017 11 11 44375
emacs spell checking

flyspell-mode

Alt+x flyspell-mode to turn on spell checker as you type. Call again to turn off.

when flyspell-mode is on, the following commands have key shortcuts.

flyspell-mode config

To have it always on, put this in your Emacs Init File:

(defun my-turn-spell-checking-on ()
  "Turn flyspell-mode on."
  (flyspell-mode 1)
  )

(add-hook 'text-mode-hook 'my-turn-spell-checking-on)
ErgoEmacs mascot-s276x226
Buy Xah Emacs Tutorial

Emacs Tutorial

Quick Start

Manage Windows

File

Buffer

Find Replace

Copy/Paste

Unicode

Whitespace

Rectangle Edit

Line Wrap

Shell

View Special File

Editing Brackets

Org Mode

HTML

Emacs Efficiency

Misc