Map Your CapsLock Key to ControlMay 4th, 2009
When you are editing text under Mac OS X, you can use the following keyboard shortcuts:
- Control-a : move to beginning of line
- Control-e : move to end of line
- Control-d : erase character
- Control-k : erase characters till end of line
- Control-b : move backward one character
- Control-f : move forward one character
- Control-p : move to previous line
- Control-n : move to next line
You can use the above keyboard shortcuts in TextEdit, when you enter URL address in Safari browser, in the command line on the Terminal app etc. In fact it applies to all apps that make use of the Mac OS X edit control.
These are system default keyboard shortcuts that are derived from Mac OS X’s Unix underpinning. These are in fact the Emacs editor’s keyboard shortcuts. Emacs, released over 30 years ago, is actively being developed and is still a popular extensible text editor especially among programmers with Unix/Linux background.
It is a time saver if you remember these keyboard shortcuts by heart. But on Mac keyboard, the location of the Control key make these keyboard shortcuts awkward to type. You can type faster if you reassign the CapsLock key to function as Control. Does anyone still use the CapsLock key?
Fortunately, Apple makes it easy for us to reassign the CapsLock key:
- Goto System Preferences->Keyboard & Mouse
- Click on the “Modifier Keys…” button
- Change the key mapping for CapsLock as shown below and click OK.