How do use emacs-state in certain modes?

Allen Li cyberdupo56 at
Sun Feb 1 22:54:06 CET 2015

Wouldn't it be easier to use evil-set-initial-state?  I would assume it
handles stuff like evil-motion-state-modes overriding
evil-emacs-state-modes automagically.

Óscar Fuentes writes:

> jenia.ivlev at (jenia.ivlev) writes:
>> Thanks for your help. Yes. undo-tree-mode is a minor mode. The major
>> mode that I need to use emacs-state is undo-tree-visualizer-mode. 
>> But it doesnt work for that mode.
>> So again, the major-mode I need to be in emacs-state is
>> undo-tree-visualizer. It doesnt work though, for some reason. Maybe you
>> can suggest something.
> undo-tree-visualizer-mode comes listed in evil-motion-state-modes, which
> apparently takes precedence over evil-emacs-state-modes, so you need to
> remove undo-tree-visualizer-mode from there. Try this:
> (setq evil-motion-state-modes
>       (delq 'undo-tree-visualizer-mode evil-motion-state-modes))
> (add-to-list 'evil-emacs-state-modes 'undo-tree-visualizer-mode)
> [snip]
> _______________________________________________
> implementations-list mailing list
> implementations-list at

More information about the implementations-list mailing list