Emacs: Add configuration for ggtags-mode
Alan Pearce alan@alanpearce.co.uk
Fri, 04 Jul 2014 21:06:50 +0100
1 files changed, 9 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -603,6 +603,15 @@ :require (go-mode go-eldoc projectile) :config (progn (setq go-projectile-switch-gopath 'maybe))) +(req-package ggtags + :config (progn + (bind-key "q" #'ggtags-navigation-mode-abort)) + :init (progn + (defun turn-on-ggtags-mode () + (interactive) + (ggtags-mode 1)) + (add-hook 'c-mode-common-hook #'turn-on-ggtags-mode))) + (req-package auto-compile :defer t :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode))