Hello.
The keybindings file I use in OS X for simulating some Emacs behaviour, was too long to be saved as a comment. Below are references for how to make Emacs like shortcuts that works through the whole OS X, at least through all programs that uses the Cocoa Text System. Xcode got its own system. BBEdit uses its own, and at least the Omnifocus programs I use, also use their own.
*
* References:
* https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/EventOverview/TextDefaultsBindings/TextDefaultsBindings.html
* Above is Apples Documentation on the subject which is Mandatory reading!
*
* Mandatory reading as well: http://www.hcs.harvard.edu/~jrus/Site/system-bindings.html
* This page lists Apple's keybindings and standard keyboard functionaliaty to a further extent than Apple's documentation further above.
*
* A Must read concerning customizing the cocoa text system: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
*
* *Very Useful Page* when you want to make your own bindings: http://www.hcs.harvard.edu/~jrus/site/KeyBindings/Windows%20Bindings.dict
*
*
*
* http://www.cocoawithlove.com/2009/12/multiple-copy-buffers-cursor-and-tab.html
* Above mostly for how to utilize the kill-ring, which doesn't work well with the setup here,
* and it is focused towards XCode, which has it separate keybindings file, but works after the
* same principles. Beware: XCode uses a string list, instead of array. It is important to
* keep the space after the comma!
* "select:", "do someth:"
*
* http://wttools.sourceforge.net/emacs-stuff/emacs-keybindings.html
* Above is a keybindings table, which is of use only to see the keyboard shortcuts.
* The commands we use on OS X is not named equivalently to Emacs.