(Spac)Emacs comes with the kill-buffer-and-window by default (on SPC w x). Also, deleting other windows (and buffers) simply by prefixing the window delete commands with a numerical prefix is very convenient. Therefore, this commit updates (or adds) the functionality of the prefix in the window delete commands.
Summary: to delete another window (and optionally its buffer), simply prefix SPC w d (or SPC w x) with the window number.
This functionality exists in the winum package itself (on winum-select-window-by-number), but for deletion that command requires a negative prefix which is cumbersome.
(Spac)Emacs comes with the
kill-buffer-and-window
by default (onSPC w x
). Also, deleting other windows (and buffers) simply by prefixing the window delete commands with a numerical prefix is very convenient. Therefore, this commit updates (or adds) the functionality of the prefix in the window delete commands.Summary: to delete another window (and optionally its buffer), simply prefix
SPC w d
(orSPC w x
) with the window number.This functionality exists in the
winum
package itself (onwinum-select-window-by-number
), but for deletion that command requires a negative prefix which is cumbersome.