latex - Automatically launch a command with Emacs when it's a .tex file -


i want launch command when start emacs .tex file. command is:

m-x flyspell-mode

is possible , how?

perhaps can add hook latex-mode. can add following line .emacs file.

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

i didn't test this, however, think should work. enable flyspell-mode whenever enter latex-mode.


Comments

Popular posts from this blog

mysql - java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) -

c - ALSA programming: how to stop immediately -