Add helm-gtags section

This commit is contained in:
laurensmiers 2018-06-12 21:19:17 +02:00
parent 27b84978a7
commit dc8880dfc1
2 changed files with 23 additions and 19 deletions

View file

@ -1,19 +0,0 @@
(require 'helm-gtags)
;; Enable helm-gtags-mode in languages that GNU Global supports
(add-hook 'c-mode-hook 'helm-gtags-mode)
(add-hook 'c++-mode-hook 'helm-gtags-mode)
(add-hook 'python-mode-hook 'helm-gtags-mode)
(add-hook 'java-mode-hook 'helm-gtags-mode)
(add-hook 'asm-mode-hook 'helm-gtags-mode)
;; customize behaviour
(custom-set-variables
'(helm-gtags-auto-update t))
(global-set-key (kbd "M-.") 'helm-gtags-find-tag-from-here)
(global-set-key (kbd "M-,") 'helm-gtags-pop-stack)
(global-set-key (kbd "C-c C-f") 'helm-gtags-find-files)
(global-set-key (kbd "C-c g f") 'helm-gtags-parse-file)
(provide 'setup-helm-gtags)