emacslatexflyspell

flyspell doesn't load with LaTeX file in emacs


Following this web page, I have edited my ~/.emacs file and added the line:

(add-hook 'LaTeX-mode-hook 'flyspell-mode)

However, flyspell doesn't start with LaTeX files. Why is that so?


Solution

  • Emacs is case-sensitive; the hook should be written as latex-mode-hook. Try this:

    (add-hook 'latex-mode-hook 'flyspell-mode)