|
From: | Nicolas Desprès |
Subject: | Re: Prefer to split along the longest edge |
Date: | Sat, 14 Dec 2024 12:45:26 +0100 |
> From: Nicolas Desprès <nicolas.despres@gmail.com>
> Date: Sat, 14 Dec 2024 11:05:30 +0100
>
> Currently, `split-window-sensibly' prefers to split vertically,
> disregarding the shape of the frame. This is a good default when
> Emacs is taller than wider. However, when Emacs is in fullscreen
> (landscape screen layout), splitting vertically is generally not the
> thing to do because there is plenty of space on the right.
>
> Typical scenario: Emacs is in fullscreen; one buffer is open in a window
> covering the entire frame. Another buffer is opened in a second
> window (C-x 4 f). In this case, the split should generally be horizontal.
> The attached patch changes `split-window-sensibly' to just try
> spliting the longest edge first. It works well when implemented in my init.el
> and installed by setting `split-window-preferred-function'.
Why don't the user options split-height-threshold and
split-width-threshold we already have are not enough to allow to have
this without any code changes?
I add martin to this discussion, since I expect him to have a lot of
insight on these matters.
[Prev in Thread] | Current Thread | [Next in Thread] |