general.el icon indicating copy to clipboard operation
general.el copied to clipboard

using multi evil states/keymaps in single general-def

Open aminevsaziz opened this issue 2 years ago • 0 comments

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:

  1. I want to set "zw" for #'+spell/remove-word in normal state with SPC as leader.
  2. I want to set "[s" for #'+spell/previous-error in motion state with SPC as leader.
  3. both 1 and 2 share the same keymap my solution was writing multiple general-def where I change the state each time.

aminevsaziz avatar Nov 02 '22 11:11 aminevsaziz