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

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

Re: evil mode issue


From: Óscar Fuentes
Subject: Re: evil mode issue
Date: Sat, 14 Feb 2015 16:45:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

henry atting <atting@byom.de> 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)




reply via email to

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