Force SPC to quit all micro-state

Avoid a bad edge case with guide-key and evil-leader
This commit is contained in:
syl20bnr 2015-02-20 23:27:43 -05:00
parent 324cd2ad3b
commit be907429e9
1 changed files with 4 additions and 1 deletions

View File

@ -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)."