有人可以分享我如何使用Fabian Gallina的python.el获得工作imenu支持的说明吗?
这是引入imenu支持的提交,但我对elisp的理解很低:
https://github.com/fgallina/python.el/commit/938e03cf6cdfcc30de84a4ec428aef9ff3c0c852
目前我打开python文件(主要模式是python)并按下M+x imenu,但得到:
No items suitable for an index found in this bufferPS M-x python-imenu-不显示任何功能。这会是问题所在吗?
发布于 2011-06-23 01:23:18
我是这样解决的:
(add-hook 'python-mode-hook
(lambda ()
(setq imenu-create-index-function 'python-imenu-create-index)))https://stackoverflow.com/questions/6317667
复制相似问题