使用垂直拆分打开新的Emacs缓冲区 [英] Open new Emacs buffer using vertical splitting
问题描述
如何在Emacs中进行垂直分割,而不是水平拆分?
How can I make vertical splitting the default instead of horizontal splitting in Emacs?
我的用例:我想将一个Python文件与svn-repository的旧版本进行比较,我使用 Cx v 〜命令。不幸的是,这总是打开第二个缓冲区,同时水平分割窗口。垂直地会更好(至少对于符合PEP-8的文件))。
My use case: I want to compare a Python file with an older revision of itself from the svn-repository, I do this with the C-x v ~ command. Unfortunately this always opens a second buffer while splitting the window horizontally. Vertically would be much better (at least for PEP-8 compliant files ;)).
推荐答案
查看问题的答案< a href =https://stackoverflow.com/questions/2081577/setting-emacs-split-to-horizontal>将Emacs拆分为水平并做相反的操作。
See the answers to the question Setting Emacs Split to Horizontal and do the opposite.
(setq split-height-threshold 0)
(setq split-width-threshold nil)
这篇关于使用垂直拆分打开新的Emacs缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!