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"?

Thanks in advance!