I use Emacs for some obj-c programming and it is very hard for me to work with the standard indentation scheme. I donβt know enough list or emacs lisp to fix it myself, but hopefully someone here can help.
Here is an example of how I want my code to be indented:
void someFunc() { NSBitmapImageRep* repout = [ [NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL pixelsWide: width pixelsHigh: height bitsPerSample: 8 samplesPerPixel: 4 hasAlpha: YES isPlanar: NO colorSpaceName: NSDeviceRGBColorSpace bytesPerRow: width*4 bitsPerPixel: 32 ]; }
But here's what the indentation area of ββMx is doing at the moment, it's pretty awful:
void someFunc() { NSBitmapImageRep* repout = [ [NSBitmapImageRep alloc] initWithBitmapDataPlanes: NULL pixelsWide: width pixelsHigh: height bitsPerSample: 8 samplesPerPixel: 4 hasAlpha: YES isPlanar: NO colorSpaceName: NSDeviceRGBColorSpace bytesPerRow: width*4 bitsPerPixel: 32 ]; }
I donβt really care about things lining up for the colon, since I have them lining up in the first letters. In addition, it explicitly casts the argument list too far. Finally, he closes the "];" one level of deepening is too deep.
Many thanks in advance to any emacs configuration hacker who can send responses.
-Patrick
source share