From afddfec611bef7b4d5e43ffaf1aae441d9480c83 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Thu, 16 Apr 2015 00:13:14 -0400 Subject: [PATCH] gtags layer: remove helm-gtags global hook --- contrib/gtags/packages.el | 1 - contrib/lang/c-c++/packages.el | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gtags/packages.el b/contrib/gtags/packages.el index 2111c836c..407316f26 100644 --- a/contrib/gtags/packages.el +++ b/contrib/gtags/packages.el @@ -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 diff --git a/contrib/lang/c-c++/packages.el b/contrib/lang/c-c++/packages.el index 2e3c2ca2f..c72c150e5 100644 --- a/contrib/lang/c-c++/packages.el +++ b/contrib/lang/c-c++/packages.el @@ -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))