How do use emacs-state in certain modes?
Óscar Fuentes
ofv at wanadoo.es
Sun Feb 1 04:07:26 CET 2015
Óscar Fuentes <ofv at wanadoo.es> writes:
> jenia.ivlev at gmail.com (jenia.ivlev) writes:
>
>> I want to use emacs-state in term-mode and undo-tree-mode.
>> How do I achieve that?
>> I tried:
>> (add-to-list 'evil-emacs-state-modes undo-tree-mode)
>>
>> This didn't work for some reason.
>>
>> So again, What should I do to be in emacs-state in term-mode for
>> exmaple?
>
> You need to quote the name of the mode:
>
> (add-to-list 'evil-emacs-state-modes 'undo-tree-mode)
> _____________________________________^
>
> Alternatively, you can switch to Emacs mode anytime with C-z.
Oh, but undo-tree-mode is a minor mode. I think that
evil-emacs-state-modes works for major modes only. And you don't want to
use Emacs mode on all buffers where undo-tree-mode is active, do you?
term-mode is a major mode, so
(add-to-list 'evil-emacs-state-modes 'term-mode)
should work.
More information about the implementations-list
mailing list