leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
578 stars 56 forks source link

I want to know how to use ggtags with Matlab language? #192

Closed fu123456 closed 5 years ago

fu123456 commented 5 years ago

Hi, Gnu global support for Matlab language. Therefore how to config ggtags so that this plugin does work with matlab-mode?

leoliu commented 5 years ago

In matlab-mode, run M-x ggtags-mode and then M-. on a symbol and follow from there.

If you want to turn on ggtags-mode for matlab-mode: (add-hook 'matlab-mode-hook (lambda () (ggtags-mode 1))).

fu123456 commented 5 years ago

Yes, It seems to does work according to your instruction. But I do "ggtags-show-definition", and it often shows "definition not found". Tags are created as follows: cd , gtags --gtagslabel=pygments. Finding a definition of a function is a task often used by me for most of time.

fu123456 commented 5 years ago

Thank you. It has done work well.

leoliu commented 5 years ago

I am confused. Did you get it to work the way you want?

fu123456 commented 5 years ago

It does work well. I reinstall the all according to the instructions in https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Btags/gtags It can support Matlab language well.