Browse Source

Update hooks to enable ggtags-mode

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

+ 9
- 3
emacs.el View File

@@ -1157,9 +1157,15 @@ found, otherwise returns nil."
(global-aggressive-indent-mode 1)) (global-aggressive-indent-mode 1))


(when (fboundp 'ggtags-mode) (when (fboundp 'ggtags-mode)
;; TODO: Do not use for emacs-lisp-mode
(add-hook 'prog-mode-hook
'ggtags-mode))
(add-hook 'c-mode-common-hook
'ggtags-mode)
(add-hook 'python-mode-hook
'ggtags-mode)
(add-hook 'js-mode-hook
'ggtags-mode)
(add-hook 'scheme-mode-hook
'ggtags-mode)
)


(when (autoload-eval-lazily 'imenu-list) (when (autoload-eval-lazily 'imenu-list)
;; (set-variable 'imenu-list-auto-resize t) ;; (set-variable 'imenu-list-auto-resize t)


Loading…
Cancel
Save