I'm using flyspell
mode, but unfortunatly I have to M-x flyspell-mode
in each AUCTeX buffer.
Somehow (add-hook 'LaTeX-mode-hook 'flyspell-mode)
doesn't work for me.
What is the correct flyspell
-hook in AUCTeX?
I'm using flyspell
mode, but unfortunatly I have to M-x flyspell-mode
in each AUCTeX buffer.
Somehow (add-hook 'LaTeX-mode-hook 'flyspell-mode)
doesn't work for me.
What is the correct flyspell
-hook in AUCTeX?
Try
(add-hook 'LaTeX-mode-hook '(flyspell-mode t))
This will force flyspell-mode to turn on, instead of toggling it.
(add-hook 'LaTeX-mode-hook '(flyspell-mode t))
I would be surprised if the above worked.
The following works (using emacs 24):
(add-hook 'LaTeX-mode-hook #'turn-on-flyspell)