尝试在spaceemacs 中使用helm-gtags 并设置快捷键如下:
(defvar tagging-packages
'(
helm-gtags
;; package taggings go here
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defvar tagging-excluded-packages '()
"List of packages to exclude.")
;; For each package, define a function tagging/init-<package-tagging>
;;
(defun tagging/init-helm-gtags ()
"Initialize my package"
(use-package helm-gtags
:defer t
:config
(progn
(evil-leader/set-key-for-mode 'helm-gtags-mode
"t]" 'helm-gtags-find-tag-from-here
"t[" 'helm-gtags-find-rtag
)
)
)
)
可以编译, 也可以使用helm-gtags-find-tag-from-here
等命令, 但尝试Spc-t-]
的快捷键却提示undefined.
如何解决?
在
.spacemacs
中的dotspacemacs/config
内: