简体   繁体   中英

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.

How can I increase that width (at the expense of, say, the width of the Mode or the File columns).

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. Something like

(setq Buffer-menu-name-width 40)

should help. Alternatively, you can use something like Mx customize-variable to change it.

In older Emacs versions, Buffer-menu-buffer+size-width should be modified instead. Thanks to the OP for his edit pointing this out.

It looks like the File column fills up whatever space is left over, so this change should take space away from it. If you prefer to take space from the Mode column, you could also modify the Buffer-menu-mode-width variable to something smaller.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM