From 7531e724cc59ef1bdb9156ab4ce32dd3a19091d6 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 19 Jun 2019 13:38:20 +0900 Subject: [PATCH] Use ggtags-mode for all prog-mode --- emacs.el | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/emacs.el b/emacs.el index 12a556c..51c290b 100644 --- a/emacs.el +++ b/emacs.el @@ -1156,14 +1156,9 @@ found, otherwise returns nil." ,@aggressive-indent-excluded-modes)) (global-aggressive-indent-mode 1)) -(when (autoload-eval-lazily 'ggtags) - (add-hook 'c-mode-common-hook - (lambda () - (when (derived-mode-p 'c-mode 'c++-mode 'java-mode) - (ggtags-mode 1)))) - (add-hook 'python-mode-hook - (lambda () - (ggtags-mode 1)))) +(when (fboundp 'ggtags-mode) + (add-hook 'prog-mode-hook + 'ggtags-mode)) (when (autoload-eval-lazily 'imenu-list) ;; (set-variable 'imenu-list-auto-resize t)