Emacs 24显示下拉菜单

xin*_*_yu 5 emacs emacs24

我在终端模式下使用emacs。我知道如何通过F10键获取菜单。Emacs过去在终端模式下以单独缓冲区中的文本形式显示菜单。由于最近的更新,或者我安装了某些软件包,因此我注意到emacs开始为菜单项创建图形下拉列表(请参见屏幕截图)。但是,我只在一台计算机(Mac OS)上看到它,而其他计算机仍以“文本模式”显示菜单。谁能告诉我如何启用图形下拉列表菜单功能?这是最新的Emacs 24.3的新功能还是可以通过某些软件包启用?在此处输入图片说明

Ala*_*air 5

Emacs 24.4的NEWS文件中对此进行了描述:

* Emacs now supports menus on text-mode terminals.
If the terminal supports a mouse, clicking on the menu bar, or on
sensitive portions of the mode line or header line, will drop down the
menu defined at that position.  Likewise, clicking C-mouse-2 or
C-mouse-2 or C-mouse-3 on the text area will pop up the menus defined
for those locations.

If the text terminal does not support a mouse, you can activate the
first menu-bar menu by typing F10, which invokes `menu-bar-open'.

If you want the previous behavior, whereby F10 invoked `tmm-menubar',
customize the option `tty-menu-open-use-tmm' to a non-nil value.
(Typing M-` always invokes `tmm-menubar', even if `tty-menu-open-use-tmm'
is nil.)
Run Code Online (Sandbox Code Playgroud)

看起来是个不错的功能。