branch: elpa/bind-map commit 292794739c929e4bb9fdf13f0c5736ad3f0fcbf8 Author: justbur <jus...@burkett.cc> Commit: justbur <jus...@burkett.cc>
Fix incorrect check of override mode in local hook --- bind-map.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bind-map.el b/bind-map.el index 90361557ef..296c8ad527 100644 --- a/bind-map.el +++ b/bind-map.el @@ -130,7 +130,8 @@ be activated.") ;; format is (OVERRIDE-MODE STATE KEY DEF) (dolist (entry bind-map-evil-local-bindings) (let ((map (intern (format "evil-%s-state-local-map" (nth 1 entry))))) - (when (and (nth 0 entry) + (when (and (boundp (nth 0 entry)) + (symbol-value (nth 0 entry)) (boundp map) (keymapp (symbol-value map))) (define-key (symbol-value map) (nth 2 entry) (nth 3 entry))))))