From 060a54ff1bb72719018519eff18754993d715238 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 10 Oct 2014 00:08:49 +0200 Subject: [PATCH] Add module ggtags --- .gitmodules | 3 +++ ggtags | 1 + init.el | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 160000 ggtags diff --git a/.gitmodules b/.gitmodules index 256dbde..4477c81 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "move-line"] path = move-line url = git://github.com/nflath/move-line.git +[submodule "ggtags"] + path = ggtags + url = https://github.com/leoliu/ggtags.git diff --git a/ggtags b/ggtags new file mode 160000 index 0000000..24fdf7e --- /dev/null +++ b/ggtags @@ -0,0 +1 @@ +Subproject commit 24fdf7ecd721f117976f2310a2db02dea4e33d85 diff --git a/init.el b/init.el index 5ac0c51..8626007 100644 --- a/init.el +++ b/init.el @@ -44,6 +44,7 @@ (add-to-list 'load-path "~/.emacs.d/helm") (add-to-list 'load-path "~/.emacs.d/emacs-helm-gtags") (add-to-list 'load-path "~/.emacs.d/move-line") +(add-to-list 'load-path "~/.emacs.d/ggtags") ; Nyanyanyanyanya (require 'nyan-mode) @@ -52,6 +53,7 @@ (require 'move-line) (require 'whitespace) (require 'rcirc) +(require 'ggtags) (nyan-mode t) @@ -205,10 +207,15 @@ (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) (add-hook 'after-init-hook 'global-company-mode) +(add-hook 'c-mode-common-hook + (lambda () + (when (derived-mode-p 'c-mode 'c++-mode 'java-mode) + (ggtags-mode 1)))) +(add-hook 'after-init-hook 'fiplr-clear-cache) + (setq rcirc-default-nick "GergelyPolonkai") (setq rcirc-default-user-name "polesz") (setq rcirc-default-full-name "Gergely Polonkai") -(add-hook 'after-init-hook 'fiplr-clear-cache) (defun delete-current-line () "Kill the whole line on which point is"