Hi, Le 15/05/2012 09:46, Riccardo Mottola a écrit : > Hi, > > Ivan Vučica wrote: >> Hi all! >> >> Does anyone have a set of settings for vim's cindent that >> automatically uses as correct indentation style as possible? >> >> What code editors do you use to contribute to the core GNUstep? > I use Emacs because it is the only thing that formats the code "right" > including the weird tab/spaces to indent. Right in the sense of GNU > coding style. I use Emacs even on the mac instead of XCode. Emacs has a > nice obj-c support, including reindentation of existing code and > dedicated obj-c menu. It works for me only for -m files and not -h, but > that is a minor drawback
By default .h file are edited with c-mode, which makes sense. When you load a .h file, just do 'alt-x objc-mode' and you're good to go. Or put something like /* emacs buffer mode hint -*- objc -*- */ as the first line of your objc .h files. Philippe > The only drawback is that I am a VI guy. Emacs doesn't even have a > decent copy&paste that integrates with the host... but I never got VI > really indent smooth as Emacs. > > Riccardo > > > _______________________________________________ > Discuss-gnustep mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnustep _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
