[英]Fabian Gallina's python.el: imenu support
有人可以分享說明如何使用 Fabian Gallina 的 python.el 獲得工作 imenu 支持嗎?
這是引入imenu支持的commit,但是我對elisp的理解很低:
https://github.com/fgallina/python.el/commit/938e03cf6cdfcc30de84a4ec428aef9ff3c0c852
目前我打開 python 文件(主要模式是python)並按下M+x imenu
,但得到:
No items suitable for an index found in this buffer
PS Mx python-imenu-
不顯示任何功能。 這可能是問題嗎?
我已經這樣解決了:
(add-hook 'python-mode-hook
(lambda ()
(setq imenu-create-index-function 'python-imenu-create-index)))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.