From: henry atting <atting@byom.de>
To: help-gnu-emacs@gnu.org
Subject: Re: evil mode issue
Date: Sat, 14 Feb 2015 18:34:06 +0100 [thread overview]
Message-ID: <8761b48kj5.fsf@posteo.de> (raw)
In-Reply-To: mailman.79.1423928769.31049.help-gnu-emacs@gnu.org
> 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
prev parent reply other threads:[~2015-02-14 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8761b48kj5.fsf@posteo.de \
--to=atting@byom.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.