_Emacs in XCode_
Last modified on : 21.09.2009
I'm an Emacs lover. I use Emacs every day. I use it on all my computers, even on this server. So, Emacs lovers, don't hate me for what follows...
I've becoming more and more serious about developping a Macosx cocoa app. In a first stage I've set up Emacs to be the default editor. Allthough Emacs can be configured to enable some kind of auto completion, it can't do it as XCode does. As I don't know all the Cocoa framework class methods, I switched the editor back to XCode.
I really miss some key features in XCode, but I had to stick with it. Well, that's what I presumed, until I started digging around...
This was a very nice help !
MacOSX works with Keybindings.dict files to set keybindings and the default system text editor functions does support features as : kill ring ! However it is not bound to any key and by the way, the kill ring is set to 1 (which means no kill ring at all).
These are the steps to enable this (works on SnowLeopard, but should be working on previous versions also - untested):
At the Terminal prompt, set the kill ring to mre than 1:
defaults write -g NSTextKillRingSize -string 1000Then copy this file in ~/Library/KeyBindings (you probably will have to create this directory)
For supporting the C-u command in XCode, you'll have to set the View-Folding-Unfold All menu keybinding to something else (I use C-S-u).
You're done! Happy emacs Xcode !
