Create command kill-this-buffer-delet-this-window
It kill the current buffer and deletes the window.
This commit is contained in:
@@ -54,3 +54,10 @@
|
||||
"Quit WINDOW without killing it."
|
||||
(interactive)
|
||||
(quit-window nil window))
|
||||
|
||||
(defun gpolonkai/kill-this-buffer-delete-this-window ()
|
||||
"Kill the buffer in the current window, and then try to delete
|
||||
the current window."
|
||||
(interactive)
|
||||
(kill-this-buffer)
|
||||
(delete-window))
|
||||
|
Reference in New Issue
Block a user