Hacker News new | ask | show | jobs
by fnoof 2367 days ago
FYI, the basic features mentioned are available in plain macOS.

Remap caps lock to control in system preferences.

Then ctrl-p: up, ctrl-n: down, ctrl-b: left, ctrl-f: right

ctrl-d for forwards delete, also ctrl-a/e for home/end, ctrl-u/k for delete line forwards/backwards

Works in almost all text entry boxes with no config or other software.

1 comments

Thanks for mentioning this! A lot of people don't know that macOS has a lot of Emacs keybindings as defaults. You can even customize it by putting a DefaultKeyBinding.dict file in ~/Library/KeyBindings/. The defaults are in `/System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict` to use as a reference, but you can also find lots of examples around GitHub and various blogs.

Documentation seems to be a bit sparse (maybe I'm just terrible at searching), but this should get anybody who is interested going:

https://developer.apple.com/library/archive/documentation/Co...

More helpful and practical documentation: http://xahlee.info/kbd/osx_keybinding.html