opening more than one file split vertically through emacs -nw

前端 未结 2 1257
半阙折子戏
半阙折子戏 2021-02-09 04:56

Using emacs -nw file1 file2 I can open multiple files at once. However, emacs will open them in horizontal splits. Is there a way to set default split behavior to v

2条回答
  •  甜味超标
    2021-02-09 05:16

    By default emacs will pick a vertical or horizontal split based on the size of your terminal.

    If you want emacs to put files side by side no matter how wide your terminal add this to your .emacs:

    (setq split-width-threshold 0)
    

    If you want emacs to put files one above the other no matter how short your terminal is add this to your .emacs:

    (setq split-height-threshold 0)
    

提交回复
热议问题