Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.4 KB

README.md

File metadata and controls

53 lines (31 loc) · 1.4 KB

lein-codeindex

Index your Clojure and Java project code with all dependencies using etags, ctags or gtags.

In short, this Leiningen plugin allows you to easily index the code and find any function, variable or namespace definition used through the code from editors like Emacs, Vim, Sublime Text and many more.

Prerequisites

Make sure you have installed etags (comes with Emacs), ctags (distributed usually with Vim) or gtags (comes with GNU Global).

Usage

To enable lein-codeindex for your project, put

latest-version

into the :plugins vector of your project.clj. If you'd like to enable it globally for every project, put it in $HOME/.lein/profiles.clj.

To run it, use:

$ lein codeindex

This will generate Emacs compatible tags using etags.

If you'd like to use ctags and generate Vi/Vim compatible tags, use:

$ lein codeindex --vim

or

$ lein codeindex --ctags --vim

To generate Emacs tags using ctags, use:

$ lein codeindex --ctags

To see other options, run:

$ lein help codeindex

License

Copyright © 2018 Sanel Zukan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.