gtags layer: remove helm-gtags global hook
This commit is contained in:
parent
145bf065f4
commit
afddfec611
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue