branch: elpa/bind-map commit a8a2937ecc4c8c44a013cfdbe61388e24b176429 Author: justbur <jus...@burkett.cc> Commit: justbur <jus...@burkett.cc>
Minor tweak to previous commit --- bind-map.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind-map.el b/bind-map.el index c9a27bfe7f..6b156a2d2b 100644 --- a/bind-map.el +++ b/bind-map.el @@ -255,7 +255,7 @@ to place in a local state map.") (defun bind-map-local-mode-hook () (dolist (entry bind-map-local-bindings) (let ((map (intern (format "evil-%s-state-local-map" (car entry))))) - (when (symbol-value map) + (when (and (boundp map) (keymapp (symbol-value map))) (define-key (symbol-value map) (cadr entry) (caddr entry)))))) (add-hook 'evil-local-mode-hook 'bind-map-local-mode-hook)