From 2ce9fb9f30e8e7f9d10cc5715f51123a517db6fe Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 4 Mar 2016 22:34:38 -0500 Subject: [PATCH] wg: hide neotree when saving session --- core/core-sessions.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-sessions.el b/core/core-sessions.el index 584faddd2..cdcec6f86 100644 --- a/core/core-sessions.el +++ b/core/core-sessions.el @@ -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.