GNU emacs相当于func-menu [英] GNU emacs equivalent of func-menu
问题描述
-
我喜欢只显示当前文件的功能。
-
功能列表可以从当前框架弹出,不是我可能已经覆盖的单独的窗口。
-
当前功能名称显示为模式行。
是否一个更接近func菜单的GNU emacs的包?
imenu
将是GNU Emacs中的类似功能。
请参阅 Ch f
您可以使用 imenu
支持。
自然elisp是支持的,所以为了快速演示:
- Mx
find-library
RETimenu
RET - Mx
imenu-add-menubar-index
kbd> RET
然后在菜单栏中看到新的索引项,而在 C-&L t; mouse3>
当然还有一个键盘界面,只需通过调用 Mx imenu
RET (使用TAB完成),但我强烈建议您添加 ido
集成,可以在 EmacsWiki * - 我发现这是一个比使用鼠标更快的界面。
有关详细信息,请参阅 Ch i g (elisp)Imenu
kbd> RET
有关配置,请参阅 Mx customize-group
RET imenu
RET
(* )除了许多其他增强功能的方法之外,即使您不想使用 ido
,您应该已经阅读过维基页面看到了基本的版本。
Is there and equivalent of func-menu for GNU emacs? I used func-menu when I had access to xemacs and I prefer its behaviour to that of the speedbar or sr-speedbar. Specifically:
I like that only the functions for the current file are displayed.
The function list can be popped up from the current frame and isn't a separate window which I may have covered up.
The current function name shows up in mode line.
Is there a package for GNU emacs which is a closer approximation to func-menu?
imenu
would be the analogous feature in GNU Emacs.
See C-hf imenu-add-menubar-index
RET.
You can call that in your mode hooks for modes with imenu
support.
Naturally elisp is supported, so for a quick demo:
- M-x
find-library
RETimenu
RET - M-x
imenu-add-menubar-index
RET
and then see the new "Index" item in the menu bar, and also on C-<mouse3>
Of course there's also a keyboard interface, simply by calling M-x imenu
RET (with TAB completion), but I would highly recommend adding the ido
integration which can be found at the EmacsWiki* -- I find that to be a generally faster interface than using the mouse.
For more details, see C-hig (elisp) Imenu
RET
For configuration, see M-x customize-group
RET imenu
RET
(*) Along with numerous other ways of enhancing the feature, so even if you don't want to use ido
, you should definitely have a read through that Wiki page after you've seen the basic version in action.
这篇关于GNU emacs相当于func-menu的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!