- Run following command
$ mkdir -p ~/Library/KeyBindings/
-
Create a file named
DefaultKeyBinding.dict
at location~/Library/KeyBindings/DefaultKeyBinding.dict
with contents from another file in this gist. -
If you use iTerm2 on Mac, do following setting so that you can use option key as meta
-
Done. Now restart application and you should get Emacs like keybinding to your macOS applications.