From ea7d82619cbdbe4ce0c703e8f9bb1346d0d53c76 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Mon, 20 Apr 2020 14:19:40 +0200 Subject: [PATCH] Change GTAGS key bindings We use LSP for references etc so 'hide' gtags a bit more --- config.org | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 5245c0a..2a32285 100644 --- a/config.org +++ b/config.org @@ -787,12 +787,13 @@ https://github.com/bbatsov/projectile ** Helm-gtags +I use LSP for finding references,.. etc so not strictly necessary. +However, sometimes there is a (legacy) project which doesn't fit in nicely with LSP, +so keep gtags around just in case. + #+BEGIN_SRC emacs-lisp (use-package helm-gtags :ensure t - :bind - ( "M-." . helm-gtags-find-tag-from-here) - ( "M-," . helm-gtags-pop-stack) :config (add-hook 'c-mode-hook 'helm-gtags-mode) (add-hook 'c++-mode-hook 'helm-gtags-mode) @@ -801,6 +802,9 @@ https://github.com/bbatsov/projectile (add-hook 'asm-mode-hook 'helm-gtags-mode) (setq helm-gtags-auto-update t) + + (define-key helm-gtags-mode-map (kbd "C-c g .") 'helm-gtags-find-tag-from-here) + (define-key helm-gtags-mode-map (kbd "C-c g ,") 'helm-gtags-pop-stack) ) #+END_SRC