Possibly kill buffer on C-w if not visible elsewhere

This commit is contained in:
Henrik Lissner 2016-02-18 09:31:33 -05:00
parent bd52011f80
commit bceebeca1e

View file

@ -172,6 +172,7 @@
;;;###autoload
(defun narf/close-window-or-workgroup ()
(interactive)
(narf/kill-real-buffer)
(if (and (= (length (window-list)) 1)
(> (length (wg-workgroup-list)) 1))
(if (string= (wg-workgroup-name (wg-current-workgroup)) wg-first-wg-name)