Emacs 和 Clojure 方法调用层次结构
我使用 eclipse 进行 Java 开发,因为它有很多有用的功能。一些经常使用的是“公开声明”和“公开调用层次结构”。
打开声明 - 如果我在某个地方使用某些函数,我只需按 F3(热键)并获取光标指向其定义的文件。
调用层次结构 - 显示调用此方法的树。
对于 clojure 编程,我使用 emacs 作为 IDE。
我感兴趣 Emacs 是否支持此类功能或是否存在一些插件来添加此功能?
注意:我可以对方法名称执行正则表达式搜索以查找定义,但它并不总是给出唯一的结果。
I use eclipse to develop in Java, because it has a lots of useful features. Some frequently used are "Open Declaration" and "Open Call hierarchy".
Open Declaration - If i use somewhere some function i just press F3 (hotkey) and get the file with cursor pointed to its definition.
Call Hierarchy - shows the tree of calls this method.
For programming on clojure i use emacs as IDE.
I'm interested if Emacs support such functionality or exists some plugins to add this?
Note: I can perform regex search on method name to find definition but it not always gives unique results.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在带有 SLIME/swank-clojure 的 emacs 中,您可以通过按 M- 转到 var 的定义(包括函数声明)。它调用 slime-edit-definition
在 Cc Cw Cc 下还有一个 slime-who-calls 函数,它可能是调用层次结构的某种替代品
In emacs with SLIME/swank-clojure, you can go to the definition of a var (including function declarations) by pressing M-. which calls slime-edit-definition
There's also a slime-who-calls function under C-c C-w C-c which may be some kind of substitute for call hierarchy