python - 如何在带有 emacs 的 python 中使用元点 (M-.)?

标签 python emacs ropemacs pymacs rope

python 有没有类似粘液的东西?

例如,如果我将光标放在 foo() 上并执行 M-。 (跳转到定义)我想看看函数foo的源码定义

无论 foo 是否在其中,这都应该有效

1) 本地项目目录

2) 在一些 ~/.virtualenvs/bar/lib/site-packages 中

3) 在其他 python 路径中

4) 虚拟环境正在使用中(即,它应该在我当前的虚拟环境中查看)

pymacs/ropemacs 组合能做到这些吗?

最佳答案

为避免使用 -e,您可以使用 etags 并通过 find 递归地添加 py 文件:

find . -type f -name '*.py' | xargs etags

关于python - 如何在带有 emacs 的 python 中使用元点 (M-.)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3501040/

相关文章:

python - Pymacs lisp 版本的稀有之处

python - 继续获取,类型错误 : a float is required

python - 使用用户定义的键返回无的列表排序

jquery - 使用 Ajax 发布到 Django View 时的 Http302 响应

emacs - Windows 版本 emacs 24.3 上的 ecb 安装错误

python - 有没有办法在 Emacs 中创建 "project file"?

python - 斜杠命令不适用于带有 discord bot 的 openai

emacs - 如何快速删除组织议程 View 中的 <预定日期>?

Emacs + AUCTeX : How to get colored pdflatex output?

python - Emacs:Pymacs 不使用 Carbon Emacs 加载 ropemacs