c-c++: fix key-bindings for cscope
This commit is contained in:
parent
5e4daf88d8
commit
5d38c0ff97
1 changed files with 5 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
|||
srefactor
|
||||
stickyfunc-enhance
|
||||
ycmd
|
||||
xscope
|
||||
xcscope
|
||||
))
|
||||
|
||||
(unless (version< emacs-version "24.4")
|
||||
|
@ -154,9 +154,11 @@
|
|||
(defun c-c++/pre-init-xcscope ()
|
||||
(spacemacs|use-package-add-hook xcscope
|
||||
:post-init
|
||||
(evil-leader/set-key-for-mode 'c-mode-common "mgi" 'cscope-index-files)))
|
||||
(dolist (mode '(c-mode c++-mode))
|
||||
(evil-leader/set-key-for-mode mode "mgi" 'cscope-index-files))))
|
||||
|
||||
(defun c-c++/pre-init-helm-cscope ()
|
||||
(spacemacs|use-package-add-hook xcscope
|
||||
:post-init
|
||||
(spacemacs/setup-helm-cscope 'c-mode-common)))
|
||||
(dolist (mode '(c-mode c++-mode))
|
||||
(spacemacs/setup-helm-cscope mode))))
|
||||
|
|
Reference in a new issue