How to control Emacs vs. vi state with a file local variable?
Christoph LANGE
langec at web.de
Tue Oct 16 10:19:47 CEST 2012
Dear evil developers/users,
I would like to generally open all files of a certain type (org-mode) in
vi state but make exceptions for a few individual files. Using file
local variables didn't work.
I tried
Local Variables:
eval: (evil-emacs-state)
End:
but apparently the order of execution was the following:
1. load the file
2. apply the local variables, switching to Emacs state
3. here, or possibly before (2), switch buffer to org-mode
4. on seeing that org-mode is not in the list of evil-emacs-state-modes,
switch to vi state
If this assumption is right, is there any way of opening individual
files in Emacs state?
Cheers, and thanks in advance,
Christoph
--
Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701
More information about the implementations-list
mailing list