general.el
general.el copied to clipboard
using multi evil states/keymaps in single general-def
I was digging the manual for a trick on how to setup different keybinds with SPC
prefix in different evil states without cluttering the config file.
for example:
- I want to set
"zw"
for#'+spell/remove-word
in normal state withSPC
as leader. - I want to set
"[s"
for#'+spell/previous-error
in motion state withSPC
as leader. - both 1 and 2 share the same keymap my solution was writing multiple general-def where I change the state each time.