From 2659ae505c1e4f3d155ca364a46dc7ef433d1004 Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Wed, 13 Jun 2018 15:07:32 -0400 Subject: [PATCH] Accept no bindings in evil-collection-define-key They all might be filtered by the white and black lists. --- evil-collection.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evil-collection.el b/evil-collection.el index 3fc7702..9332052 100644 --- a/evil-collection.el +++ b/evil-collection.el @@ -230,7 +230,8 @@ function adds the ability to filter keys on the basis of (push def filtered-bindings)))) (puthash map-sym record evil-collection--bindings-record) (setq filtered-bindings (nreverse filtered-bindings)) - (cond ((and (boundp map-sym) (keymapp (symbol-value map-sym))) + (cond ((null filtered-bindings)) + ((and (boundp map-sym) (keymapp (symbol-value map-sym))) (apply #'evil-define-key* state (symbol-value map-sym) filtered-bindings)) ((boundp map-sym)