I have known using (setq split-width-threshold 1)
splitting windows in horizontal by default.
But I want to only split a window such as slime
in horizontal and other window is vertical by default.
Is there a way to do this?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI have known using (setq split-width-threshold 1)
splitting windows in horizontal by default.
But I want to only split a window such as slime
in horizontal and other window is vertical by default.
Is there a way to do this?
Thanks for @lawlist .
I have find the solution and known more about split-width-threshold
and split-height-thershold
.
By default, emacs will split window in horizontal when the window's columns greater then 160 columns.
Setting a integer number to split window sensibly or set split-window-preferred-function
for a custom function for splitting.
split-width-threshold
andsplit-height-threshold
, please read the doc-strings for the variables -- e.g., perhaps the value ofnil
is appropriate or a higher value.M-x describe-variable
. – lawlist Feb 13 '17 at 5:20