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

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

Re: evil mode issue


From: henry atting
Subject: Re: evil mode issue
Date: Sat, 14 Feb 2015 18:34:06 +0100

> henry atting <address@hidden> writes:
>
>> Text/*.tex files I edit in evil mode. To invoke evil mode I have
>> something like this on top of these files:
>>
>> %;;-*- mode: LaTeX; mode: evil -*
>>
>> I avoid
>>
>> (evil-mode 1)
>>
>> in ~/.emacs
>>
>> But after I have opened one of the evil mode files every buffer from
>> then on is in evil mode.
>>
>> How can I suppress this?
>
> `evil-mode' is a global mode. Use `evil-local-mode' instead.
>
> BTW, you can avoid adding the "mode: evil-local-mode" to every TeX file
> by activating the mode on a mode hook (untested):
>
> (add-hook 'LaTeX-mode-hook 'evil-local-mode)
>

Thanks, both work fine.

henry

      


reply via email to

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