Difference between define-key and evil-define-key

Michael Markert markert.michael at googlemail.com
Tue Oct 11 20:52:16 CEST 2011


On 11 Oct 2011, Michael Markert wrote:

> On 11 Oct 2011, Natan Yellin wrote:
>
>> What is the difference between these two lines?
>>
>> (define-key evil-normal-state-map ",b" 'ido-switch-buffer)
>> (evil-define-key 'normal ",b" 'ido-switch-buffer)
>
> ...
> So the second in a correct form would be along
>
> (evil-define-key 'normal 'org-mode-map ",b" 'ido-switch-buffer)

Well almost. This one is correct (keymap mustn't be a symbol, but the keymap):

     (evil-define-key 'normal org-mode-map ",b" 'ido-switch-buffer)
     
Sorry.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20111011/a59b65fd/attachment.pgp 


More information about the implementations-list mailing list