The function spacemacs//set-initial-grep-state is only called by the spacemacs-editing-style-hook but always throws an error because the hook is ran with an argument (the editing style switched to), but the function does not expect any arguments.
At first it seems like one should just add the missing argument, however, it is in fact not necessary to execute this function at all: grep-mode is derived from compilation-mode which is an element of evil-motion-state-modes. Moreover, when using (or temporarily toggling) the emacs editing style, evil-motion-state is overridden with evil-emacs-state by the advice holy-motion-to-emacs-state.
The function
spacemacs//set-initial-grep-state
is only called by thespacemacs-editing-style-hook
but always throws an error because the hook is ran with an argument (the editing style switched to), but the function does not expect any arguments.At first it seems like one should just add the missing argument, however, it is in fact not necessary to execute this function at all:
grep-mode
is derived fromcompilation-mode
which is an element ofevil-motion-state-modes
. Moreover, when using (or temporarily toggling) the emacs editing style,evil-motion-state
is overridden withevil-emacs-state
by the adviceholy-motion-to-emacs-state
.