How do I set the number of items in the mouse buffer menu in Emacs?
emacs
Solution
The following two variables give you some control over this:
- `mouse-buffer-menu-maxlen`
- `mouse-buffer-menu-mode-mult`
My interpretation is that the latter is the maximum number of buffers in a given major mode before that mode gets its own sub-menu, and the former is the maximum number of buffers allowed in any sub/menu before it is split into multiple menus.
`setq` as appropriate, or M-x `customize-group` RET `mouse` RET
Problem
When I press ctrl+left-mouse-button in Emacs, I get the mouse buffer menu. This is my favourite way of switching buffers, but the list of buffers doesn't have to be too long before it re-organises the list into sub menus (fundamental, LISP, others etc...). I really hate this because I find it much harder to find the buffer I'm looking for. My question is: How can I set the number of items in the mouse buffer menu that emacs will show before it breaks the menu into submenus? (I want to increase it, obviously!)