branch: elpa/bind-map
commit 8ec4516db2cebf3ee4fbd8bf1b6e4cbcac9acee0
Author: justbur <jus...@burkett.cc>
Commit: justbur <jus...@burkett.cc>

    Remove use of evil-define-key
    
    It's unnecessary here since we know the keymap exists already, and it's
    more complicated than the use of define-key with evil-get-auxiliary-map
---
 bind-map.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bind-map.el b/bind-map.el
index debc5a2a2b..3644785e19 100644
--- a/bind-map.el
+++ b/bind-map.el
@@ -264,7 +264,8 @@ mode maps. Set up by bind-map.el." map))
                (define-key ,root-map (kbd key) ',prefix-cmd))
              (dolist (key (list ,@evil-keys))
                (dolist (state ',evil-states)
-                 (evil-define-key state ,root-map (kbd key) ',prefix-cmd))))
+                 (define-key (evil-get-auxiliary-keymap ,root-map state t)
+                   (kbd key) ',prefix-cmd))))
          ;;bind in global maps
          (dolist (key (list ,@keys))
            (when ,override-minor-modes

Reply via email to