In order to use any feature of the package, wincom-mode
must be enabled:
You can also add (wincom-mode)
to your initialization file, or
enable it through the customize interface.
When wincom-mode
is enabled, window IDs are shown as mode line
lighters of the form <ID>
(by default, See ID display), and
other-window
(C-x o) is remapped to wincom-select
.
wincom-select
, and any other window command, starts window
selection (provided there are more than wincom-minimum
windows,
See Window commands). During window selection, any window in the
current wincom-scope
(See Customization) can be selected by
pressing the sequence of keys corresponding to its displayed ID.
Alternatively, you can use any binding in wincom-command-map
,
unless it is shadowed by a window ID.
Select the window corresponding to ID in the current scope
(See Customization) (wincom-select
).
Delete the window corresponding to ID in the current scope
(wincom-delete
).
Make the window corresponding to ID in the current scope the sole
window of its frame (wincom-delete-other
).
Split the window corresponding to ID in the current scope from below
(wincom-split-window-below
). This window command accepts a
prefix argument (with the same semantics as split-window-below
).
Split the window corresponding to ID in the current scope from the right
(wincom-split-window-right
). This window command accepts a
prefix argument (with the same semantics as split-window-right
).
Display the buffer of the next command in the window corresponding to
ID in the current scope (wincom-selected-window-prefix
). This
window command is only available when
display-buffer-override-next-command
is available (Emacs 28+).
Swap the states of the current window and the window corresponding to
ID in the current scope (wincom-swap
).
Switch to the minibuffer if it’s active (wincom-select-minibuffer
).
See Window commands for information regarding defining new commands.