Emacs: Spell Check

By Xah Lee. Date: . Last updated: .

Spell Checking, Current Word or Whole Buffer

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

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

Note: spell checking requires the software ispell or aspell or hunspell installed.

emacs spell check 2025-07-06 33b11
emacs spell check 2025-07-06 33b11

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)