emacs nw 模式,调整拆分窗口的大小 [英] emacs nw mode, resize split window
问题描述
我很感兴趣,当我处于控制台模式时,如何在 emacs 中调整拆分窗口的大小?
I'm interested how can I resize split windows in emacs when I'm in console mode?
我打开了我的文件:
emacs myfilename.txt -nw
现在当我用以下方法分割窗口时:
now when I split my window with:
C-x 2
或
C-x 3
如何调整新窗口的大小?
how can I resize new windows?
推荐答案
尝试 M-x 放大窗口 和 M-x 缩小窗口.
您可以使用前缀参数指定要放大或缩小的行数,例如要将窗口放大六行,请键入:
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
绑定到C-x ^.shrink-window
默认不绑定任何快捷方式,但您可以使用带有 C-x ^ 的负前缀参数来获得收缩.
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.
因此您可以通过键入:
C-u 6 C-x ^(放大)
C-u - 6 C-x ^(缩小)
一个特殊情况是水平分割,您可以使用额外的键盘快捷键来嵌入或缩小窗口:
A special case is the horizontal split where you have additional keyboard shortcuts available for embiggening or shrinking the windows:
C-x } 绑定到 enlarge-window-horizontally
C-x { 绑定到 shrink-window-horizontally
同样,您可以使用前缀参数来指定要使用 C-u
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屋!