문제

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?

도움이 되었습니까?

해결책

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

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

다른 팁

I could not make this work:

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

But then I found this:

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

-and it is working.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top