emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 6a2ee981c3: Add new functions for splitting the root window


From: Gregory Heytings
Subject: Re: master 6a2ee981c3: Add new functions for splitting the root window
Date: Tue, 13 Sep 2022 19:28:34 +0000


    C-x w | split-window-right
C-u C-x w | split-root-window-right
    C-x w - split-window-below
C-u C-x w - split-root-window-below

These are really not easier to type than 'C-x 2' and 'C-x 3'. I'd rather type simply 'C-u C-x 2' and 'C-u C-x 3' to split the root window.


But (1) C-u C-x 2 and C-u C-x 3 are already taken, and (2) unlike 2 and 3, | and - have a visual relation with the meaning of the command. That being said, I won't try to convince anyone here, again I just shared a part of my configuration which I thought could be useful in this discussion.

    C-x w h window-height-adjust with + - = (repeatable)
    C-x w w window-width-adjust with + - = (repeatable)

These could be also repeatable with arrow keys, and one keymap 'C-x w r' with mnemonic "resize".


But then you lose the possibility to fit the window to the buffer vertically and horizontally (which is what the = key does in both cases), at least not without using some arbitrary keys for the two cases. In practice I rarely adjust both the width and height of a window, but perhaps that's only me.

    C-x w m maximize-window-toggle C-u C-x w m minimize-window

Window managers have shortcut keys 'x' for maximize, and 'n' for minimize.


Out of curiosity: which window managers?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]