helm-gtags and ggtags are clients for GNU Global. GNU Global is a source code tagging system that allows querying symbol locations in source code, such as definitions or references. Currently, helm-gtags with GNU Global is faster than anything else in Emacs for retrieving a large amount of candidates (even more than 10000 candidates, the list appears in an instant) and offers more features for language that GNU Global directly: C, C++, Yacc, Java, PHP4 and assembly. ggtags is nice for its eldoc support such as display variable/function definition retrieved from the tag database. However, we disable ggtags in some modes because those modes have better eldoc integration already. We add ggtags for this feature alone.
34 lines
906 B
EmacsLisp
34 lines
906 B
EmacsLisp
;;; extensions.el --- gtags Layer extensions File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(defvar gtags-pre-extensions
|
|
'(
|
|
;; pre extension gtagss go here
|
|
)
|
|
"List of all extensions to load before the packages.")
|
|
|
|
(defvar gtags-post-extensions
|
|
'(
|
|
;; post extension gtagss go here
|
|
)
|
|
"List of all extensions to load after the packages.")
|
|
|
|
;; For each extension, define a function gtags/init-<extension-gtags>
|
|
;;
|
|
;; (defun gtags/init-my-extension ()
|
|
;; "Initialize my extension"
|
|
;; )
|
|
;;
|
|
;; Often the body of an initialize function uses `use-package'
|
|
;; For more info on `use-package', see readme:
|
|
;; https://github.com/jwiegley/use-package
|