Bind "muhenkan" key to evil-escape in Spacemacs

2023-09-08 102 words 1 min read

In vim and hybrid editing styles in Spaecemacs, you hit “ESC” key frequently to escape to “normal mode”. But “ESC” keye is far away from the home row.

In a Japanse 106 keyboard, there some unused keys:

Japanese 106 Keyboard

図1: Japanese 106 Keyboard

So bind “muhenkan” key (lett to the spacebar) to =evil-escape" to espcape to normal mode.

Add this to your Emacs configuration:

(define-key global-map (kbd "<muhenkan>") 'evil-escape)
ソースコード 1: Bind "muhenkan" key to =evil-escape"

If you do not use a Japanese keybord, please replace “<muhenkan>” with the key you want to use.

That’s all. Enjoy!


Tags: Emacs

Related Articles:


We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it