I'm trying to install and configure the ggtags package. Primarily, I use it for a ruby on rails projects (enh-ruby-mode).

I can generate ctags including all vendor's files for my project with the following command:

ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)

How can I configure ggtags package to achieve the same thing?

I use OS X, with installed exuberant-ctags and pygments plugins.

I think, I need to add some settings to ~/.globalrc or to the project root's gtags.conf, but I don't know the settings.

  • I think you might just need to build global with ctags as its backend. With that ctags will go the parsing but global will save the database in its more efficient manner. Once you get that working from the terminal, ggtags package will also work the same way. With that, this might not be an emacs related question at all. – Kaushal Modi Aug 3 '15 at 11:31
  • The question is how can I make gtags to run ctags with custom arguments? Can I configure it in .globalrc – Kukunin Aug 4 '15 at 11:35
  • I simply have a ~/.ctags for ctags config and ~/.globalrc for global config. You need to specify the ctags binary location when building global: gnu.org/software/global/globaldoc_toc.html#Plug_002din – Kaushal Modi Aug 4 '15 at 12:32

You can also generate the tags with the following command to command to be read by ggtags

gtags --gtagslabel=ctags

The above command should be helpful of any language not supported by gtags but supported by ctags.

  • What if it doesn't work? Does gtags need to be compiled in a particular way to benefit from ctags? – Dmitry May 8 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.