Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctags for Clojure #300

Open
practicalli-johnny opened this issue Dec 29, 2021 · 0 comments
Open

ctags for Clojure #300

practicalli-johnny opened this issue Dec 29, 2021 · 0 comments
Assignees

Comments

@practicalli-johnny
Copy link
Contributor

practicalli-johnny commented Dec 29, 2021

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

@practicalli-johnny practicalli-johnny self-assigned this Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant