evil-set-initial-state not working for several modes

Alan Schmitt alan.schmitt at polytechnique.org
Wed Jan 11 15:12:43 CET 2012


On 10 Jan 2012, at 8:09, Alan Schmitt wrote:

> On 10 janv. 2012, at 03:11, Leo Alekseyev wrote:
>
>> I have the following lines in my .emacs:
>>
>> (evil-set-initial-state 'magit-status-mode 'emacs)
>> (evil-set-initial-state 'magit-log-edit-mode 'emacs)
>> (evil-set-initial-state 'shell-mode 'emacs)
>>
>> as well as other initial-state directives, but these in particular
>> don't seem to work.  All these modes start in the normal state.  I
>> suspect this is a bug; can somebody confirm it and/or give any
>> bug-hunting advice?
>
> Interestingly, I only have these two:
> (evil-set-initial-state 'Deft-mode 'emacs)
> (evil-set-initial-state 'Bselect-mode 'emacs)
>
> and they don't seem to work either.

I found the cause of my problem: the names should not be capitalized. Is 
it really necessary to distinguish `Deft-mode` from `deft-mode` ?

Alan



More information about the implementations-list mailing list