This page lists several utilities that let you use the ErgoEmacs Keybinding OS-wide.
Note: as of , the ergoemacs-mode has command to generate all these files. Call
ergoemacs-extras to generate them.
Download at: http://code.google.com/p/ergoemacs/source/browse/extra
For Windows, just download the following executables.
Files ending in “.exe” are executable binaries. Double click on it, then ErgoEmacs keybinding will be activated. To de-activate, right-click on the AutoHotkey Green H icon in Taskbar. (aka the “system tray”).
Files ending in “.ahk” is the AutoHotkey source code.
Following are util to make Caps Lock key call emacs's “execute-extended-command” (M-x). Very convenient.
These are implemented using AutoHotkey. See: AutoHotkey Tutorial.
Download one of the following file, then rename the file to
DefaultKeyBinding.dict, then put it in
~/Library/KeyBindings/. (create that dir if it doesn't exist.)
Restart any app and the keybinding will be effective (no need to restart Mac OS X.).
These are based on OS X's system-wide keybinding mechanism. For detail, see tutorial: Creating Keybinding in Mac OS X.
Download the following, then place the content in your
~/.inputrc. (see the file header for detail.)
I use all of them, the Dvorak version. However, note that there are many quirks in keybinding system in all Windows, Mac, Linux, and Bash too. In a perfect world, a keybinding system should let you assign or remap any key system-wide. However, that's not the case. Not in Windows, not in Mac OS X, not with emacs, nor with AutoHotkey. Typically, there are certain key combinations handled at low level that you just cannot remap, some are by design, but some due to complexity. (For example, on Windows, 【❖ Win+l】, 【❖ Win+u】, 【Ctrl+Alt+Del】. On Mac, ⌥ Opt with any of e u i n `, or ⌘ Cmd with any of z x c v.)
Also, there are many practical quirks. For example, on Windows with AutoHotkey, the keys won't work when you are intsalling a software or in regedit or running any of sys admin tools. Because, while in regedit, you are running it in admin privilege mode, But AutoHotkey is not running in admin privilege mode. You can run AutoHotkey as admin, but that introduces more complexities.
On the Mac, the system wide keybinding works only with apps written in the Cocoa framework, but even so, not all your key remappings works. (for practical purposes, it works in vast majority of apps out there.)
So, the above ErgoEmacs scripts are not perfect, but they cover all the basic cursor movement and deletion keys. (read the file header for detail.)
PS the contributors for these scripts are in the files. Here's a summary:
If the pre-built tools on this page do not solve your need, see:Disqus