From: Pony <lingyu.ma.fu@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to split the popup "Buffer Menu" by major mode?
Date: Mon, 18 Oct 2010 14:42:55 -0700 (PDT) [thread overview]
Message-ID: <5995c283-0006-4579-99ea-b6b65e0575e5@k22g2000yqh.googlegroups.com> (raw)
In-Reply-To: mailman.14.1287433119.15066.help-gnu-emacs@gnu.org
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
next prev parent reply other threads:[~2010-10-18 21:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 18:22 How to split the popup "Buffer Menu" by major mode? Lingyu Ma
2010-10-18 20:17 ` Drew Adams
[not found] ` <mailman.14.1287433119.15066.help-gnu-emacs@gnu.org>
2010-10-18 21:42 ` Pony [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-18 18:57 How to split the popup "Buffer Menu" by major mode? Pony
2010-10-18 19:31 ` Andreas Politz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5995c283-0006-4579-99ea-b6b65e0575e5@k22g2000yqh.googlegroups.com \
--to=lingyu.ma.fu@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).