Refactor doom/kill-*-buffer commands

This commit is contained in:
Henrik Lissner 2019-10-10 12:34:10 -04:00
parent 400dae27cd
commit a3fa1e07b1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 61 additions and 55 deletions

View file

@ -263,7 +263,7 @@ workspace to delete."
(+workspace-switch +workspaces-main t)
(unless (string= (car workspaces) +workspaces-main)
(+workspace-delete name))
(doom/kill-all-buffers)))
(doom/kill-all-buffers (doom-buffer-list))))
(+workspace-message (format "Deleted '%s' workspace" name) 'success)))
('error (+workspace-error ex t))))
@ -274,7 +274,7 @@ workspace to delete."
(unless (cl-every #'+workspace-delete (+workspace-list-names))
(+workspace-error "Could not clear session"))
(+workspace-switch +workspaces-main t)
(doom/kill-all-buffers))
(doom/kill-all-buffers (buffer-list)))
;;;###autoload
(defun +workspace/kill-session-and-quit ()