96

I want to use Emacs and need remap the Caps key to Ctrl (switch them). How can I do it?

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
James.Y
  • 1,427
  • 1
  • 11
  • 16
  • 1
    http://stackoverflow.com/questions/162896/emacs-on-mac-os-x-leopard-key-bindings?rq=1 – Goibniu Mar 16 '13 at 09:44
  • The first answer still works in Catalina! Also this is very precise and useful and not a duplicate of the one it's marked as duplicate of. I wanted exactly this and found it! Recommend changing the title to "... in macOS" (don't mention 10.8) and removing duplicate status. – jerclarke Dec 18 '19 at 16:32

1 Answers1

218

Just go to Apple Menu -> System Preferences... -> Keyboard -> Keyboard Tab -> Modifier Keys and select Control for Caps Lock.

Bozhidar Batsov
  • 55,802
  • 13
  • 100
  • 117
  • 49
    If you are using an external keyboard, you'll want to select it from the dropdown at the top of the **Modifier Keys** window. – stevenspiel Jul 02 '14 at 18:12
  • 3
    Does anyone know how this can be done from a script i can run from the terminal? I like to have to all such configurations automated so it's easy to switch computers and profiles. – zumalifeguard May 17 '15 at 03:57
  • @zumalifeguard http://superuser.com/questions/545208/remap-keys-via-command-line-in-mac-os-x – Lingnik May 29 '15 at 16:16
  • Is there any way to add other keys to the select list, such as Backspace, without using third party software? – Petrus Theron Jan 06 '16 at 17:13
  • Would be nice to have capslock be control in terminal, etc, and command otherwise. – trusktr Apr 01 '16 at 23:29