practicalli / spacemacs

Content for the book - Clojure Development with Spacemacs
https://practical.li/spacemacs
Creative Commons Attribution Share Alike 4.0 International
109 stars 33 forks source link

ctags for Clojure #300

Open practicalli-johnny opened 2 years ago

practicalli-johnny commented 2 years ago

How to configure and use ctags to jump to definitions

Make sure you have Exuberant ctags installed on your system; apt-get install exuberant-ctags or brew install ctags.

You will also need to add --langmap=Lisp:+.clj.cljs into ~/.ctags file in the root directory of the user account. Example.

TODO: figure out commands and keybindings to use for Spacemacs Then use C-c p R to rebuild your TAGS file (this works when you’re in projectile mode). After that just can either do M-. to jump to definition (and C-u M-. for next match), remember that M-* takes you back. One great thing about tags is that you don’t have to be ‘jacked in’ to use them! That goes for both navigation and auto-complete.

References