I use vanilla Emacs with evil. I did not install smartparens but it is present and enabled on my system as a dependency of something.
I need to rebind the M-s keys to something other than the default sp-splice-sexp.
The output of describe-key for M-s is currently:
M-s runs the command sp-splice-sexp, which is an interactive compiled
Lisp function in ‘smartparens.el’.
It is bound to M-s, <normal-state> M-s.
Going into smartparens.el, I am able to see that a smartparens-mode-map is defined and M-s belongs to it.
I have tried in vain to do:
(define-key smartparens-mode-map (kbd "M-s") nil)
or
(evil-define-key 'normal smartparens-mode-map (kbd "M-s") nil)
or
(define-key evil-normal-state-map (kbd "M-s") nil)
The list of the MELPA packages I use is:
auto-package-update atom-one-dark-theme slime
company evil column-enforce-mode paredit evil-cleverparens
highlight-parentheses key-chord
One of these packages must be loading smartparens and defining the keymap but I can't find which one.
Is there a way perhaps to see which keymap or evil keymap to change?