corgi-emacs / corgi

Unbundled Emacs configuration aimed at Clojure developers
181 stars 18 forks source link

evil-escape package for alternative Esc keybindings #24

Closed practicalli-johnny closed 8 months ago

practicalli-johnny commented 2 years ago

Not everyone has a convenient location of the Esc key on their keyboard, requiring a rebinding of keys in the OS or a slower transition between insert and normal mode.

Consider adding the evil-escape package to provide a simple mechanism to bind a two-character key binding as an alternative to pressing the Esc key.

(setq-default evil-escape-key-sequence "jk")

Reference

plexus commented 2 years ago

I don't see a need to add this to any of the existing corgi meta-packages, but I see little harm in adding it to the sample config, with a comment about what it is.

davidh38 commented 2 years ago

I tried to put the following into the config, but i get the error "wrong argument". Is there some way of handling this in corgi?

 (insert
  ("jk" "Escap" evil-escape-key-sequence)
  )