mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Use (delete-other-windows) in kill defuns
This commit is contained in:
@ -60,12 +60,14 @@
|
|||||||
(defun my/kill-all-buffers ()
|
(defun my/kill-all-buffers ()
|
||||||
"Kill all buffers, even the one you're in"
|
"Kill all buffers, even the one you're in"
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(delete-other-windows)
|
||||||
(mapc 'kill-buffer (buffer-list))
|
(mapc 'kill-buffer (buffer-list))
|
||||||
(message "All buffers killed"))
|
(message "All buffers killed"))
|
||||||
|
|
||||||
(defun my/kill-other-buffers ()
|
(defun my/kill-other-buffers ()
|
||||||
"Kill all buffers but the one you're in"
|
"Kill all buffers but the one you're in"
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(delete-other-windows)
|
||||||
(mapc 'kill-buffer (cdr (buffer-list (current-buffer))))
|
(mapc 'kill-buffer (cdr (buffer-list (current-buffer))))
|
||||||
(message "All other buffers killed"))
|
(message "All other buffers killed"))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user