13

When I active flyspell, M-x flyspell-mode, it marks misspelled words as I write them but it does not mark any misspelled words in the buffer that I have not written during current session. How can I make it so that flyspell also marks misspelled word not written during the current session?

N.N.
  • 8,336
  • 12
  • 54
  • 94

1 Answers1

19

Well, you can manually do:

M-x flyspell-buffer

If you want this to happen every time you turn on flyspell-mode, you can add this to your .emacs:

(add-hook 'flyspell-mode-hook 'flyspell-buffer)
N.N.
  • 8,336
  • 12
  • 54
  • 94
Trey Jackson
  • 73,529
  • 11
  • 197
  • 229
  • How can I make it so that `flyspell-buffer` automatically happens when I turn `flyspell-mode` on in certain modes, e.g. if I want to enable flyspell automatically in AUCTeX and have it mark misspelled words in the whole buffer? – N.N. Oct 24 '11 at 14:57
  • 1
    @N.N. The hook will turn it on for all modes, if you want just specific modes, change the hook to be something like, (lambda () (when (member major-mode '(auctex-mode other-mode-i-want)) (flyspell-buffer))) – Trey Jackson Oct 24 '11 at 15:11