[英]increase 'buffer' column width in buffer list view
I am working with rather longish file names and when viewing the buffer list, the width of the Buffer
column is too short for my purposes. 我正在使用相当长的文件名,在查看缓冲区列表时,
Buffer
列的宽度太短,不适合我的目的。
How can I increase that width (at the expense of, say, the width of the Mode
or the File
columns). 如何增加宽度(例如,以
Mode
或File
列的宽度为代价)。
Width I am trying to increase marked with yellow in the screenshot below: 宽度我想在下面的屏幕截图中用黄色标记增加:
In Emacs 24.3 and later, this is controlled by the variable Buffer-menu-name-width
, which defaults to 19 on my system. 在Emacs 24.3及更高版本中,它由变量
Buffer-menu-name-width
,在我的系统上默认为19。 Something like 就像是
(setq Buffer-menu-name-width 40)
should help. 应该有所帮助 Alternatively, you can use something like
Mx customize-variable
to change it. 或者,您可以使用
Mx customize-variable
类的东西来更改它。
In older Emacs versions, Buffer-menu-buffer+size-width
should be modified instead. 在较旧的Emacs版本中,应该修改
Buffer-menu-buffer+size-width
。 Thanks to the OP for his edit pointing this out. 感谢OP的编辑指出了这一点。
It looks like the File column fills up whatever space is left over, so this change should take space away from it. 看起来File列填满剩下的任何空间,因此这个更改应该占用空间。 If you prefer to take space from the Mode column, you could also modify the
Buffer-menu-mode-width
variable to something smaller. 如果您希望从“模式”列中获取空间,还可以将
Buffer-menu-mode-width
变量修改为更小的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.