I've searched for this before but I've only seen questions like the below:
- How to override major mode bindings
I don't have an understanding of what a major / minor mode really is (which both questions reference) (or whether it's relevant).
I'm trying to redefine the
- key when I'm editing any file. It's currently defined by the evil-mode package in:
243:(define-key evil-motion-state-map "-" 'evil-previous-line-first-non-blank)
How would I go about redefining this to instead run a other function? What are my options - and their implications?
I've managed to what I assume redefines the keybinding by adding the following to my .spacemacs
(define-key evil-motion-state-map "-" 'deer)
Which works, but it feels a bit hacky / cumbersome in case it ever conflicts with a future keybinding with another package.