Question

I want to launch a command when I start emacs with a .tex file. The command is:

M-x flyspell-mode

Is it possible and how?

Était-ce utile?

La solution

Perhaps you can add hook to the latex-mode. You can add the following line into your .emacs file.

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

I didn't test this, however, I think it should work. This will enable flyspell-mode whenever you enter the latex-mode.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top