Tuesday, May 20, 2008

Automatically starting flyspell-mode on LaTeX Files

In my last post I described how to have Emacs check spelling on the fly using flyspell-mode. The problem was that I kept forgetting to enable the mode until long after I started editing a file. To fix the problem I added a hook in my .emacs file that automatically enables flyspell-mode for each latex file I open. All I did was add the following to my .emacs:

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

No comments: