emacs: enable ggtags mode

seems to be the best interface to gtags.
enable it for c-mode and java-mode to start with. can always add others
later if needs be.