fd
can exit NeoTree
This commit is contained in:
parent
434f216dfe
commit
4aa93dfe69
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue