emacs nw模式,调整大小分割窗口 [英] emacs nw mode, resize split window

查看:110
本文介绍了emacs nw模式,调整大小分割窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感兴趣的是,当我处于控制台模式时,如何在emacs中调整分割窗口大小?



我打开了我的文件:

  emacs myfilename.txt -nw 

现在,当我分开窗口时:

  Cx 2 
pre>

  Cx 3 

如何调整新窗口大小?

解决方案>

尝试 Mx放大窗口 Mx缩小窗口



您可以指定使用前缀参数放大或缩小的行数,例如放大窗口六行,键入:



Cu 6 Mx放大窗口



默认情况下, enlarge-window 绑定到 Cx ^ 。默认情况下, shrink-window 不会绑定到任何快捷方式,但您可以使用带有 C-x ^ 的负前缀参数来收缩。



所以您可以通过键入以下方式获得与上述相同的效果:



Cu 6 Cx ^ / kbd>(放大)



Cu - 6 Cx ^ (收缩)



< >

一个特殊情况是水平拆分,您可以使用其他键盘快捷键来修饰或缩小窗口:



Cx} 绑定到放大窗口水平



Cx {绑定到收缩窗口水平



再次,您可以使用前缀参数,用于指定使用 Cu来放大/缩小窗口的数量(即列数)


I'm interested how can I resize split windows in emacs when I'm in console mode?

I opened my file with:

emacs myfilename.txt -nw

now when I split my window with:

C-x 2 

or

C-x 3

how can I resize new windows?

解决方案

Try M-x enlarge-window and M-x shrink-window.

You can specify the number of lines by which to enlarge or shrink with the prefix argument, e.g. to enlarge a window by six lines, type:

C-u 6 M-x enlarge-window

By default enlarge-window is bound to C-x ^. shrink-window is not bound to any shortcut by default, but you can use a negative prefix argument with C-x ^ to get shrinkage.

So you could get the same effect as above by typing:

C-u 6 C-x ^ (enlarge)

C-u - 6 C-x ^ (shrink)


A special case is the horizontal split where you have additional keyboard shortcuts available for embiggening or shrinking the windows:

C-x } is bound to enlarge-window-horizontally

C-x { is bound to shrink-window-horizontally

Again, you can use prefix arguments to specify the amount (i.e., number of columns) you want to enlarge/shrink the windows with C-u

这篇关于emacs nw模式,调整大小分割窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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