Skip to content

Instantly share code, notes, and snippets.

@icetan
Forked from tsdeng/emacs_scala.md
Last active June 13, 2021 08:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save icetan/a4597c77485d0dc4bd43 to your computer and use it in GitHub Desktop.
Save icetan/a4597c77485d0dc4bd43 to your computer and use it in GitHub Desktop.
Set up ctags and scala support with GNU Global/Gtags

Basic Support

  1. Install ctags-exuberant
  2. Install gnu global
    • brew install global --with-exuberant-ctags
    • add the following lines in bash export GTAGSCONF=/usr/local/share/gtags/gtags.conf export GTAGSLABEL=ctags
    • edit gtags.conf, in the exuberant-ctags section, add following lines :langmap=Scala\:.scala:\ :gtags_parser=Scala\:/usr/local/Cellar/global/6.4/lib/gtags/exuberant-ctags.la:\
  3. generate global manually
    • gtags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment