wg: hide neotree when saving session

This commit is contained in:
Henrik Lissner 2016-03-04 22:34:38 -05:00
parent dd2ccf407d
commit 2ce9fb9f30

View file

@ -66,7 +66,10 @@ automatically renamed to the project name.")
(advice-add 'wg-change-modeline :override 'ignore)
;; Don't remember popup windows
(add-hook! kill-emacs 'narf-popup-close-all)
(add-hook! kill-emacs
(narf/popup-close-all)
(when (and (featurep 'neotree) (neo-global--window-exists-p))
(neotree-hide)))
;; This helps abstract some of the underlying functions away, just in case I want to
;; switch to a different package in the future, like persp-mode, eyebrowse or wconf.