Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Can I do this with out having to manually rebuild tags every time I change branches?

like image 353
Arthur Ulfeldt Avatar asked Mar 03 '10 19:03

Arthur Ulfeldt


1 Answers

If you're using SLIME this can be done easily with M-.

EDIT: When Clojure code is compiled the location of definitions is stored. Note that this works best when you compile entire files. Jumping to an definition that you evaluated with C-x C-e doesn't work so well (tho it does works for Common Lisp and SLIME).

like image 159
dnolen Avatar answered Oct 22 '22 09:10

dnolen