简体   繁体   English

跳转到Emacs + Slime / leiningen-Swank + Clojure中的函数定义

[英]Jump to function definition in Emacs + Slime/leiningen-Swank + Clojure

I'm using Emacs with clojure mode and slime connected to a swank server produced by running lein swank and would really love to be able to easily jump to function definitions within my project . 我正在使用带有clojure模式的Emacs和连接到运行lein swank生成的lein swank服务器的lein swank ,并且非常希望能够轻松跳转到我的项目中的函数定义 Can I do this with out having to manually rebuild tags every time I change branches? 我是否可以在每次更改分支时手动重建标记时执行此操作?

If you're using SLIME this can be done easily with M-. 如果您正在使用SLIME,可以使用M-.轻松完成M-.

EDIT: When Clojure code is compiled the location of definitions is stored. 编辑:编译Clojure代码时,存储定义的位置。 Note that this works best when you compile entire files. 请注意,这在编译整个文件时效果最佳。 Jumping to an definition that you evaluated with Cx Ce doesn't work so well (tho it does works for Common Lisp and SLIME). 跳转到使用Cx Ce评估的定义不能很好地工作(因为它适用于Common Lisp和SLIME)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM