universal-emacs-keybindings
universal-emacs-keybindings copied to clipboard
Use Emacs keybindings in all applications.
Universal Emacs Keybindings
Use the Emacs keybindings you love across all applications for mac and windows.
Features
- Ctrl-Space can be used to preform Emacs style text selection outside of Emacs
- Supports Emacs prefix keys such as Ctrl-xs (save)
- Allows you to specify app specific overrides (Google Chrome)
- Apps with native Emacs keybindings are left alone
- OS specific keybindings are left alone (alt+tab, ctrl+c, cmd+c, etc)
Update (August 29th 2024)
On Mac I've moved from Hammerspoon to Karabiner, I've left the legacy Hammerspoon script in the repo for reference.
For more information check out my new blog post.
Installation for Mac
- Download and install Karabiner-Elements
- Select "Universal Emacs Keybindings" from karabiner configurations
- Enable the latest version in Karabiner
Installation for Windows
- Download and Install AutoHotkey
- Launch
emacs_autohotkey.ahk
(notice the green system tray icon) - Add
emacs_authotkey.ahk
to your Windows startup script. Checkout this guide.
Original post
I wrote a blog post laying out my reasons for developing these scripts.
Special thanks to the following scripts for inspiration:
- https://gist.github.com/dulm/ee5ec47cfd2a71ded0e3841ee04e6ea3
- https://github.com/usi3/emacs.ahk