2008-12-12

The Caps-Lock key on most keyboards is much bigger than its relative unimportance justifies. Personally, I hardly ever use the key at all. So can't we do something more useful with the Caps-Lock key than not using it?

Yes we can. Sascha Chua mentions a little trick to put in your .emacs to bind Caps-Lock to M-x:

First, it remaps the Caps-Lock key to F13 using xmodmap, and then binds that to 'execute-extended-command', a.k.a, M-x. It's important to note that this will remap Caps-Lock for all your programs, not just emacs.

Also note that the above only works on X-Windows (Linux/Unix); on MS-Windows you can use Lennart Borgmans tip instead: