My question is how to let the command SPC-m-c-C
get the function name automatically?
I am using 0.200.10@25.3.1 (spacemacs), on Ubuntu 16.04 64 bit
I am using cscope layer, it is great but with one function cannot be used normally.
Every time when I press SPC-m-c-C
to call helm-cscope-find-calling-this-funtcion
, I get error command-execute: Wrong type argument: commandp, helm-cscope-find-calling-this-funtcion
I then do M-x helm-cscope-find-calling-this-funtcion
, it will then ask me to input the function name and after I input the function name, everything works well.
I have also searched for some similar questions, but they are not the problem I am facing.
ref001
ref002
ref003
My config file for cscope
(defun cscope/init-helm-cscope ()
(use-package helm-cscope
:defer t
:init
(defun spacemacs/setup-helm-cscope (mode)
"Setup `helm-cscope' for MODE"
(spacemacs/set-leader-keys-for-major-mode mode
"cc" 'helm-cscope-find-called-function
"cC" 'helm-cscope-find-calling-this-funtcion
"cd" 'helm-cscope-find-global-definition
"ce" 'helm-cscope-find-egrep-pattern
"cf" 'helm-cscope-find-this-file
"cF" 'helm-cscope-find-files-including-file
"cr" 'helm-cscope-find-this-symbol
"cx" 'helm-cscope-find-this-text-string))
:config
(defadvice helm-cscope-find-this-symbol (before cscope/goto activate)
(evil--jumps-push))))
interactive
spec. But you can apparently invoke it usingM-x
, which requires a command. Can you repro the problem when starting withemacs -Q
(no init file)? What doesC-h k M-x
tell youM-x
is bound to? There seems to be some info missing from this question.