[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to split the popup "Buffer Menu" by major mode?
From: |
Pony |
Subject: |
Re: How to split the popup "Buffer Menu" by major mode? |
Date: |
Wed, 08 Dec 2010 15:32:20 -0000 |
User-agent: |
G2/1.0 |
On Oct 18, 10:17 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > 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. ;-)
Hi Drew,
I add (setq mouse-buffer-menu-mode-mult 1) into .emacs, and it works
perfectly.
(setq mouse-buffer-menu-mode-mult 0) works also.
The default value is 4.
Thanks!
regards,
Lingyu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: How to split the popup "Buffer Menu" by major mode?,
Pony <=