Created
June 20, 2013 09:07
-
-
Save nikvdp/5821346 to your computer and use it in GitHub Desktop.
Config file to sets up full emacs bindings throughout OS X (including ctrl keys)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* (mostly) Full Emacs style key bindings for any OS X (Cocoa) app | |
* | |
* to use save this file to ~/Library/KeyBindings/DefaultKeyBinding.dict | |
* (will need to create the ~/Library/KeyBindings/ folder first) | |
* | |
* If you want to set up your own bindings take a look at Apple's documentation | |
* for NSResponder: | |
* https://developer.apple.com/library/mac/#documentation/cocoa/reference/ApplicationKit/Classes/NSResponder_Class/Reference/Reference.html | |
* | |
* Originally from: | |
* http://www.gnufoo.org/macosx/index.html#emacs | |
* | |
* These comments plus a couple extra keybindings added by nikvdp | |
*/ | |
{ | |
/* Added by Nik */ | |
"^u"="deleteToBeginningOfLine:"; | |
"^w"="deleteWordBackward:"; | |
/* End Added by Nik */ | |
"~f"="moveWordForward:"; | |
"~b"="moveWordBackward:"; | |
"~<"="moveToBeginningOfDocument:"; | |
"~>"="moveToEndOfDocument:"; | |
"~v"="pageUp:"; | |
"~d"="deleteWordForward:"; | |
"~^h"="deleteWordBackward:"; | |
"~\010"="deleteWordBackward:"; /* Alt-backspace */ | |
"~\177"="deleteWordBackward:"; /* Alt-delete */ | |
/* Escape should really be complete. */ | |
"\033"="complete:"; /* Escape */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment