使用垂直拆分打开新的Emacs缓冲区 [英] Open new Emacs buffer using vertical splitting

查看:104
本文介绍了使用垂直拆分打开新的Emacs缓冲区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在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-horizo​​ntal>将Emacs拆分为水平并做相反的操作。

See the answers to the question Setting Emacs Split to Horizontal and do the opposite.

采取 offby1 answer ,反之亦然:

(setq split-height-threshold 0)
(setq split-width-threshold nil)

这篇关于使用垂直拆分打开新的Emacs缓冲区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆