From be907429e974935e327b569402da74cd6461f98e Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Fri, 20 Feb 2015 23:27:43 -0500 Subject: [PATCH] Force SPC to quit all micro-state Avoid a bad edge case with guide-key and evil-leader --- core/core-micro-state.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-micro-state.el b/core/core-micro-state.el index 5b3e30f93..a4524d278 100644 --- a/core/core-micro-state.el +++ b/core/core-micro-state.el @@ -92,7 +92,10 @@ Available PROPS: (defun spacemacs//micro-state-create-wrappers (name doc bindings) "Return an alist (key wrapper) for each binding in BINDINGS." (mapcar (lambda (x) (spacemacs//micro-state-create-wrapper name doc x)) - bindings)) + (append bindings + ;; force SPC to quit the micro-state to avoid a edge case + ;; with evil-leader + (list '("SPC" nil :exit t))))) (defun spacemacs//micro-state-create-wrapper (name default-doc binding) "Create a wrapper of FUNC and return a tuple (key wrapper BINDING)."