all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* evil mode issue
@ 2015-02-14 13:39 henry atting
  2015-02-14 15:45 ` Óscar Fuentes
       [not found] ` <mailman.79.1423928769.31049.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: henry atting @ 2015-02-14 13:39 UTC (permalink / raw)
  To: help-gnu-emacs

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?

henry
      


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: evil mode issue
  2015-02-14 13:39 evil mode issue henry atting
@ 2015-02-14 15:45 ` Óscar Fuentes
       [not found] ` <mailman.79.1423928769.31049.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Óscar Fuentes @ 2015-02-14 15:45 UTC (permalink / raw)
  To: help-gnu-emacs

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)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: evil mode issue
       [not found] ` <mailman.79.1423928769.31049.help-gnu-emacs@gnu.org>
@ 2015-02-14 17:34   ` henry atting
  0 siblings, 0 replies; 3+ messages in thread
From: henry atting @ 2015-02-14 17:34 UTC (permalink / raw)
  To: help-gnu-emacs

> 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)
>

Thanks, both work fine.

henry

      


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-14 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-14 13:39 evil mode issue henry atting
2015-02-14 15:45 ` Óscar Fuentes
     [not found] ` <mailman.79.1423928769.31049.help-gnu-emacs@gnu.org>
2015-02-14 17:34   ` henry atting

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.