Hacking Gate

ERU

To dream and to build, To fail and to succeed.


Remap keys in OS X tutorial for Emacs lovers

Remap Caps Lock to Control

Open System Preferences

Then go to Keyboard - Modifier Keys...

Remap Caps Lock to Control, then OK.

Use Option as Meta key

For system terminal users:

For iterm terminal users:

Use Meta key in Global

Use DefaultKeyBinding.dict to set custom key binding.

There is a Keybindings for emacs emulation from hcs.harvard.edu.

wget -O- http://www.hcs.harvard.edu/~jrus/site/KeyBindings/Emacs%20Opt%20Bindings.dict > ~/Library/KeyBindings/DefaultKeyBinding.dict

Learn more

Advanced

If you want more deep custom, use Karabiner.

You can install it from brew cask.

comments powered by Disqus