21.5 Mode Line Mouse Commands
You can use mouse clicks on window mode lines to select and manipulate
Some areas of the mode line, such as the buffer name, and major and minor
mode names, have their own special mouse bindings. These areas are
highlighted when you hold the mouse over them, and information about
the special bindings will be displayed (see Tooltips). This
section's commands do not apply in those areas.
- Mouse-1 on a mode line selects the window it belongs to. By
dragging Mouse-1 on the mode line, you can move it, thus
changing the height of the windows above and below. Changing heights
with the mouse in this way never deletes windows, it just refuses to
make any window smaller than the minimum height.
- Mouse-2 on a mode line expands that window to fill its frame.
- Mouse-3 on a mode line deletes the window it belongs to. If the
frame has only one window, it does nothing.
- C-Mouse-2 on a mode line splits that window, producing two
side-by-side windows with the boundary running through the click
position (see Split Window).
Furthermore, by clicking and dragging Mouse-1 on the divider
between two side-by-side mode lines, you can move the vertical
boundary to the left or right.