On :killall, delete windows on *scratch*
This commit is contained in:
parent
cef05fe1f8
commit
7dbaf6c570
1 changed files with 3 additions and 2 deletions
|
@ -221,8 +221,9 @@ left, create a scratch buffer."
|
||||||
"Kill all project buffers. If BANG, kill *all* buffers (in workgroup)."
|
"Kill all project buffers. If BANG, kill *all* buffers (in workgroup)."
|
||||||
(interactive "<!>")
|
(interactive "<!>")
|
||||||
(narf--kill-buffers (narf/get-buffers (not bang)))
|
(narf--kill-buffers (narf/get-buffers (not bang)))
|
||||||
(when bang
|
(mapc (lambda (w) (when (eq (window-buffer w) (get-buffer "*scratch*"))
|
||||||
(delete-other-windows)))
|
(delete-window w)))
|
||||||
|
(narf/get-visible-windows)))
|
||||||
|
|
||||||
;;;###autoload (autoload 'narf:kill-other-buffers "defuns-buffers" nil t)
|
;;;###autoload (autoload 'narf:kill-other-buffers "defuns-buffers" nil t)
|
||||||
(evil-define-command narf:kill-other-buffers (&optional bang)
|
(evil-define-command narf:kill-other-buffers (&optional bang)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue