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

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -