fd can exit NeoTree

This commit is contained in:
syl20bnr 2014-11-02 00:04:29 -04:00
parent 434f216dfe
commit 4aa93dfe69

View file

@ -314,9 +314,11 @@ DELETE-FUNC when calling CALLBACK.
(spacemacs/escape-state ',seq ',shadowed nil nil 'evil-exit-visual-state)))
(define-key evil-motion-state-map key
`(lambda () (interactive)
(let ((exit-func (if (eq 'help-mode major-mode)
'quit-window
'evil-normal-state)))
(let ((exit-func (cond ((eq 'help-mode major-mode)
'quit-window)
((eq 'neotree-mode major-mode)
'neotree-hide)
(t 'evil-normal-state))))
(spacemacs/escape-state ',seq ',shadowed nil nil exit-func))))
(eval-after-load 'evil-lisp-state
`(define-key evil-lisp-state-map ,key