gtags layer: remove helm-gtags global hook

This commit is contained in:
syl20bnr 2015-04-16 00:13:14 -04:00
parent 145bf065f4
commit afddfec611
2 changed files with 1 additions and 1 deletions

View file

@ -48,7 +48,6 @@ which require an initialization must be listed explicitly in the list.")
:defer t
:init
(progn
(add-hook 'prog-mode-hook 'helm-gtags-mode)
(setq helm-gtags-ignore-case t
helm-gtags-auto-update t
helm-gtags-use-input-at-cursor t

View file

@ -57,6 +57,7 @@ which require an initialization must be listed explicitly in the list.")
(add-to-hooks 'flycheck-mode '(c-mode-hook c++-mode-hook)))
(defun c-c++/post-init-helm-gtags ()
(add-hook 'c-mode-common-hook 'helm-gtags-mode)
(spacemacs/gtags-define-keys-for-mode 'c-mode)
(spacemacs/gtags-define-keys-for-mode 'c++-mode))