dsemy.com [Up]

3 Usage

In order to use any feature of the package, wincom-mode must be enabled:

M-x wincom-mode RET

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.

C-x o ID, C-x o o ID

Select the window corresponding to ID in the current scope (See Customization) (wincom-select).

C-x o 0 ID

Delete the window corresponding to ID in the current scope (wincom-delete).

C-x o 1 ID

Make the window corresponding to ID in the current scope the sole window of its frame (wincom-delete-other).

C-x o 2 ID

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).

C-x o 3 ID

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).

C-x o 4 ID

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+).

C-x o t ID

Swap the states of the current window and the window corresponding to ID in the current scope (wincom-swap).

C-x o m

Switch to the minibuffer if it’s active (wincom-select-minibuffer).

See Window commands for information regarding defining new commands.