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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top