init.el: Fix bindings for helm gtags configuration

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-02-04 23:06:55 +05:30
parent e087cf6b19
commit 07c797ab31

28
init.el
View file

@ -148,7 +148,7 @@
(progn
(setq helm-gtags-ignore-case t
helm-gtags-auto-update t
helm-gtags-prefix-key "SPC-m"
helm-gtags-prefix-key "SPC"
helm-gtags-use-input-at-cursor t
helm-gtags-pulse-at-cursor t)
(add-hook 'c-mode-hook 'helm-gtags-mode)))
@ -208,31 +208,31 @@
;; Others
"at" '(ansi-term :which-key "open terminal")
;; Gtags
"gc" '(helm-gtags-create-tags
"mgc" '(helm-gtags-create-tags
:which-key "Create tag db")
"gd" '(helm-gtags-fing-tag
"mgd" '(helm-gtags-fing-tag
:which-key "Find definitions")
"gf" '(helm-gtags-select-path
"mgf" '(helm-gtags-select-path
:which-key "Jump to a file in tag db")
"gG" '(helm-gtags-dwim-other-window
"mgG" '(helm-gtags-dwim-other-window
:which-key "Jump to location based on context")
"gi" '(helm-gtags-tags-in-this-function
"mgi" '(helm-gtags-tags-in-this-function
:which-key "Present tags in current function")
"gl" '(helm-gtags-parse-file
"mgl" '(helm-gtags-parse-file
:which-key "Jump to definitions in file")
"gn" '(helm-gtags-next-history
"mgn" '(helm-gtags-next-history
:which-key "Jump to next location in context stack")
"gp" '(helm-gtags-previous-history
"mgp" '(helm-gtags-previous-history
:which-key "Jump to previous location in context stack")
"gr" '(helm-gtags-find-rtag
"mgr" '(helm-gtags-find-rtag
:which-key "Find references")
"gR" '(helm-gtags-resume
"mgR" '(helm-gtags-resume
:which-key "Resume previous helm-gtags session")
"gs" '(helm-gtags-select
"mgs" '(helm-gtags-select
:which-key "Select any tag in project retrieved by gtags")
"gS" '(helm-gtags-show-stack
"mgS" '(helm-gtags-show-stack
:which-key "Show stack of visited locations")
"gu" '(helm-gtags-update-tags
"mgu" '(helm-gtags-update-tags
:which-key "Create tag db")
))