当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : emacs 调整窗格大小的方式是哪种
帖子发表于 : 2012-08-14 16:15 
头像

注册: 2008-07-30 23:21
帖子: 13427
地址: [email protected]
系统: Debian stable AMD64
送出感谢: 38
接收感谢: 127
一种是指定某窗格高度或增量,宽度亦然,也就是说操纵对象是窗格,其余窗格被压缩或扩展是随后的副作用。
另一种就是像鼠标一样拖边界,即操作对象是分隔线,各窗格被压缩或扩展是随后的副作用。

用鼠标的自然都是操纵分隔线的,我想问的是键盘或命令。
vim 就是只有操作窗格大小的命令,不能选定某分隔线,操作分隔线的移动。


_________________
(2015-11-16 更新)适合 WM 的截图脚本
(2015-08-24 更新)Debian、Ubuntu 源列表说明
(2013-02-01 首发)文字如何绘出
▷▷ 【更 多 在 此】 ◁◁
箪食瓢饮随遇安,不求栋梁求参天。
【初韵】一门牛逼的编程语言。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: emacs 调整窗格大小的方式是哪种
帖子发表于 : 2012-08-14 19:10 
头像

注册: 2008-03-23 0:39
帖子: 770
送出感谢: 0 次
接收感谢: 4
摘自info :em09
File: emacs, Node: Change Window, Next: Displaying Buffers, Prev: Pop Up Window, Up: Windows

20.5 Deleting and Rearranging Windows
=====================================

`C-x 0'
Delete the selected window (`delete-window').

`C-x 1'
Delete all windows in the selected frame except the selected window
(`delete-other-windows').

`C-x 4 0'
Delete the selected window and kill the buffer that was showing in
it (`kill-buffer-and-window'). The last character in this key
sequence is a zero.

`C-x ^'
Make selected window taller (`enlarge-window').

`C-x }'
Make selected window wider (`enlarge-window-horizontally').

`C-x {'
Make selected window narrower (`shrink-window-horizontally').

`C-x -'
Shrink this window if its buffer doesn't need so many lines
(`shrink-window-if-larger-than-buffer').

`C-x +'
Make all windows the same height (`balance-windows').

To delete the selected window, type `C-x 0' (`delete-window').
(That is a zero.) Once a window is deleted, the space that it occupied
is given to an adjacent window (but not the minibuffer window, even if
that is active at the time). Deleting the window has no effect on the
buffer it used to display; the buffer continues to exist, and you can
still switch to with `C-x b'.

`C-x 4 0' (`kill-buffer-and-window') is a stronger command than `C-x
0'; it kills the current buffer and then deletes the selected window.

`C-x 1' (`delete-other-windows') deletes all the windows, _except_
the selected one; the selected window expands to use the whole frame.
(This command cannot be used while the minibuffer window is active;
attempting to do so signals an error.)

The command `C-x ^' (`enlarge-window') makes the selected window one
line taller, taking space from a vertically adjacent window without
changing the height of the frame. With a positive numeric argument,
this command increases the window height by that many lines; with a
negative argument, it reduces the height by that many lines. If there
are no vertically adjacent windows (i.e. the window is at the full
frame height), that signals an error. The command also signals an
error if you attempt to reduce the height of any window below a certain
minimum number of lines, specified by the variable `window-min-height'
(the default is 4).

Similarly, `C-x }' (`enlarge-window-horizontally') makes the
selected window wider, and `C-x {' (`shrink-window-horizontally') makes
it narrower. These commands signal an error if you attempt to reduce
the width of any window below a certain minimum number of columns,
specified by the variable `window-min-width' (the default is 10).

`C-x -' (`shrink-window-if-larger-than-buffer') reduces the height
of the selected window, if it is taller than necessary to show the
whole text of the buffer it is displaying. It gives the extra lines to
other windows in the frame.

You can also use `C-x +' (`balance-windows') to even out the heights
of all the windows in the selected frame.

Mouse clicks on the mode line provide another way to change window
heights and to delete windows. *Note Mode Line Mouse::.



_________________
评价: 3.7% 自由建客
 
页首
 用户资料  
 
3 楼 
 文章标题 : Re: emacs 调整窗格大小的方式是哪种
帖子发表于 : 2012-08-15 17:08 
头像

注册: 2008-07-30 23:21
帖子: 13427
地址: [email protected]
系统: Debian stable AMD64
送出感谢: 38
接收感谢: 127
看来和 vim 一样,操作对象是窗格而不是分隔线。

楼上头像真内涵。


_________________
(2015-11-16 更新)适合 WM 的截图脚本
(2015-08-24 更新)Debian、Ubuntu 源列表说明
(2013-02-01 首发)文字如何绘出
▷▷ 【更 多 在 此】 ◁◁
箪食瓢饮随遇安,不求栋梁求参天。
【初韵】一门牛逼的编程语言。


页首
 用户资料  
 
4 楼 
 文章标题 : Re: emacs 调整窗格大小的方式是哪种
帖子发表于 : 2012-08-15 18:02 
头像

注册: 2008-03-23 0:39
帖子: 770
送出感谢: 0 次
接收感谢: 4
自由建客 写道:
看来和 vim 一样,操作对象是窗格而不是分隔线。

楼上头像真内涵。

我一直用的是表层含义:lisp.....


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译