Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

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

This will force flyspell-mode to turn on, instead of toggling it.

share|improve this answer
    
thanks. That worked. removing the hook worked as well. The hook might have been sourced somehow otherwise (from text-mode?). –  Dima Jul 30 '10 at 14:55
add comment
(add-hook 'LaTeX-mode-hook '(flyspell-mode t))

I would be surprised if the above worked. But the following is better anyway:

(add-hook 'LaTeX-mode-hook 'turn-on-flyspell)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.