- Question:
How can i select flyspell automatically by an EMACS Variable in my file (not via the .emacs configuration file!), just for that file, similar like I select the ispell dictionary just for that file
EXAMPLE abc.tex:
---SNIP---
text text ..
text text ..
<!-- LocalXIspellDict: de -->
<!-- HERE SHOULD GO THE SOLUTION -->
---SNIP---
Second Question:
How can I achieve that -- whenever I open a TeX-File, i. e., XXX.tex -- flyspell is automatically selected by configuring my init.el file? Meaning, flyspell is selected depending on the filename extension.
An alternative to the first-line file variables statement is a commented local variables block like this:
(n.b. As of Emacs 24, while still applicable to major modes, the
mode: MINOR-MODE
syntax is deprecated, andeval
should be used instead).See the manual for details:
M-:
(info "(emacs) Specifying File Variables")
RETAlso: http://www.emacswiki.org/emacs/FileLocalVariables