Ditch Caps Lock on Your Mac
brooksreview.net
brooksreview.net
There are several other ways, but the one I've found most reliable is xmodmap:
https://github.com/jemfinch/config/blob/master/.xmodmap (first three lines)
Put that in ~/.xmodmap and run "xmodmap ~/.xmodmap" from your .xsession or similar.
System Menu -> Preferences -> Keyboard -> Layouts -> Options -> Ctrl Key Position -> Make Caps Lock an additional Ctrl
Just import this registry settings file if you want Caps to behave as Ctrl: http://ftp.gnu.org/old-gnu/emacs/windows/docs/ntemacs/contri...
Or this one if you want to switch Caps and Ctrl (although I never miss CapsLock personally): http://ftp.gnu.org/old-gnu/emacs/windows/docs/ntemacs/contri...
Tip: disable CapsLock first, or there will be system lag when you use it as the delete key. Also, consider temporarily disabling the hardware backspace key until you learn to use the new one.
If you are using an Apple keyboard and it has that behavior, check for a firmware update. They issued an update a long time ago that turns off that behavior on that key when it is being used for something other than CAPS LOCK.
It's unfortunate that you can't set it to Escape (without some dodgy hack at least), would be great for vim.
Does anyone know if the Sun keyboard introduced this layout, or if it dates back even further?
Edit: While I was looking for info on the Sun keyboards, I came across this article, about why it's a bad idea to switch caps lock and ctrl. I don't agree, but it's interesting: http://news.ycombinator.com/item?id=1996002
Despite this, it never once occurred to me to turn the blasted thing off. I just mapped it as a Ctrl key. I feel so old school. I may even learn Emacs now.
I imagine this isn't a particularly common use case among the general public, though.
Needless to say the absolutely moronic "fix" for accidental caps lock in OSX (just used caps lock there) which delays activation for a fraction of a second makes this far less accurate and is mind blowingly frustrating. I almost returned my laptop because of it (but the suspend/resume on the macbooks is so good I had to take the good with the bad).
Works a charm for me. I've used this for years. I don't feel that using it as Ctrl is useful.
in nearly 20 years of Mac usage i've failed to realize that