Emacs usualy automaticaly splits the window horizontaly.
How can I change this default behaviour, so that the window is splited verticaly by default?
Use (setq split-width-threshold nil)
for vertical split.
Use (setq split-width-threshold 1 )
for horizontal split.
Use http://www.emacswiki.org/emacs/ToggleWindowSplit to toggle between them.
Use http://www.emacswiki.org/emacs/TransposeWindows to transponse them.
(setq split-width-threshold 1)
for vertical split)
(setq split-width-threshold 1 )
draws a vertical line.
M-x Customize-Group [RET] Windows
There you have Split Window Preferred Function
, Split Height Threshold
and Split Width Threshold
. Set Split Height Threshold
to nil
and Split Width Threshold
to 0
split-width-threshold
in emacs 24.4.1.
Nov 25, 2015 at 11:00
split-height-threshold
from its default 80 to 200. Thanks! :-)
Mar 28, 2016 at 10:28
For me it worked with
(setq split-width-threshold 0)
(setq split-height-threshold nil)
C-x 2
to split a window vertically, andC-x 3
to split a window horizontally.