help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I turn on some minor mode on specific files?


From: Pascal J. Bourguignon
Subject: Re: Can I turn on some minor mode on specific files?
Date: Sun, 26 May 2013 03:34:52 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Hongxu Chen <leftcopy.chx@gmail.com> writes:

> Hi list,
>
>    I sometimes do not need to spell check for all the text files, but
>    only a few specific files on-line. So I would like the spell checker
>    like flymake only turned on for these files. Is there a way to do so?
>    I guess that the file-local variable might help, however I am not
>    familiar with the `eval' syntax.

Just put: -*- mode:flyspell -*-
on the first or second line.


Alternatively, put:

Local Variables:
mode: flyspell
End:

within the last 512 bytes of the file.



If you want to activate it for a whole familly of files determined by
their path (eg. extension, name or directory component), you can use
auto-mode-alist.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.
You can take the lisper out of the lisp job, but you can't take the lisp out
of the lisper (; -- antifuchs


reply via email to

[Prev in Thread] Current Thread [Next in Thread]