Difference between define-key and evil-define-key

Natan Yellin aantny at gmail.com
Tue Oct 11 21:19:45 CEST 2011


Thank you, Michael!

On Tue, Oct 11, 2011 at 8:52 PM, Michael Markert <
markert.michael at googlemail.com> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20111011/a10a952d/attachment.htm 


More information about the implementations-list mailing list