Homepage: https://github.com/leoliu/gtags-el
Author: Tama Communications Corporation
Updated:
Gtags facility for Emacs
GLOBAL home page is at: http://www.gnu.org/software/global/
Author: Tama Communications Corporation
Required version: GLOBAL 5.9 or later
Gtags-mode is implemented as a minor mode so that it can work with any
other major modes. Gtags-select mode is implemented as a major mode.
Please copy this file into emacs lisp library directory or place it in
a directory (for example "~/.emacs.d") and write $HOME/.emacs like this.
(add-to-list 'load-path "~/.emacs.d")
(autoload 'gtags-mode "gtags" "" t)
If you hope gtags-mode is on in c-mode then please add c-mode-hook
to your $HOME/.emacs like this.
(add-hook 'c-mode-hook (lambda () (gtags-mode 1)))
There are two hooks, gtags-mode-hook and gtags-select-mode-hook.
The usage of the hook is shown as follows.
* Setting to reproduce old 'Gtags mode'
(add-hook 'gtags-mode-hook
'(lambda ()
(setq gtags-pop-delete t)
(setq gtags-path-style 'absolute)))
* Setting to make 'Gtags select mode' easy to see
(add-hook 'gtags-select-mode-hook
'(lambda ()
(setq hl-line-face 'underline)
(hl-line-mode 1)))
Code
Customizing gtags-mode