Browse Source

Use ggtags-mode for all prog-mode

master
10sr 5 years ago
parent
commit
7531e724cc
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 3 additions and 8 deletions
  1. +3
    -8
      emacs.el

+ 3
- 8
emacs.el View File

@@ -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)


Loading…
Cancel
Save