help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to split the popup "Buffer Menu" by major mode?


From: Drew Adams
Subject: RE: How to split the popup "Buffer Menu" by major mode?
Date: Mon, 18 Oct 2010 13:17:17 -0700

> When press click the left button with ctrl key pressed
> (<C-down-mouse-1>), emacs will run the command "mouse-buffer-menu".
>
> If I open a lot of buffers in different modes, the popup menu will
> generate several submenus as "Buffers 1", "Buffers 2", "Buffers 3"
> and so on.
> Is there a way to make the popup menu split according to buffers'
> major modes? For example, "C++", "Java", "Org-mode"?

No doubt someone else will be able to help you more, but take a look at option
`mouse-buffer-menu-mode-mult' (whose doc string is not very good, IMHO).
Setting it to 1 or 0 should apparently do what you want.

FWIW - `mouse-buffer-menu' also uses variable `mouse-buffer-menu-mode-groups'.
According to the (nearly incomprehensible) doc string for
`mouse-buffer-menu-mode-mult' you should not need to modify
`mouse-buffer-menu-mode-groups'.  But you might try doing so anyway just to see
what happens. ;-)  Apparently things are meant to be magic, which is too often
just another word for user-unfriendly. ;-)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]