0

In addition to the Escape key, I would like to go into Normal mode while editing by pressing the caps-lock key. How do I achieve that?

Thus far I have been able to disable the Caps-lock key using https://www.cyberciti.biz/faq/linux-deactivate-caps-lock/

specifically with the command setxkbmap -option ctrl:nocaps as mentioned on that website.

1 Answer 1

2

Emacs does not allow treating the capslock key specially. Generally, treating modifiers specially is something supported differently well, depending on the frontend in use (the X one supports the standard modifiers, so does the Cocoa one).

What you could do instead is remapping the capslock key to a different key Emacs recognizes (such as F13), then bind that key to your desired action in Emacs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.