2014-04-19 24 views
4

我在終端模式下使用emacs。我知道如何通過F10鍵獲取菜單。 Emacs用於在終端模式下將菜單顯示爲獨立緩衝區中的文本。無論是最近的更新,還是我安裝了一些軟件包,我都注意到emacs開始爲菜單項創建一個圖形下拉列表(請參閱屏幕截圖)。但是,我只在我的一臺計算機(Mac OS)上看到它,我的其他計算機仍然以「文本模式」顯示菜單。任何人都可以告訴我如何啓用圖形下拉菜單功能?這是最新Emacs 24.3的新功能,還是可以通過某些軟件包啓用? enter image description hereEmacs 24顯示下拉菜單

+1

我認爲這可能是在Emacs 24.4新(目前在測試前),而不是23.3,這可能是爲什麼你沒有看到它在所有安裝。 – JSON

+0

是的,很奇怪。我在下面的回覆後訪問了新聞頁面。我發現這個功能確實被描述爲Emacs 24.4的變化。但是'emacs --version'返回的版本字符串仍然顯示爲24.3.50。但它看起來像當我所有的機器更新到24.4我將有這個功能。謝謝。 –

+0

對,我剛剛測試過。我拿來的Emacs 24.4.50.1從git倉庫,它已得到了新的下拉風格的菜單。所以我想我只能等到從我的Linux發行版正式更新。 –

回答

3

這在NEWS文件描述了Emacs的24.4:

* 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.) 

看起來像一個不錯的功能。

+0

謝謝,我已經明確標記了NEWS文件鏈接。這非常有用。 –

+0

@xing_yu我還建議[這]註釋(http://www.masteringemacs.org/articles/2013/12/29/whats-new-in-emacs-24-4/)的消息文件的版本,確實一般的博客 – Alastair