Gnu Emacs is insisting on indenting my typedef as follows:
typedef enum {
horizon开发者_如何学JAVAtal,
vertical,
}
shapes;
I want it to indent as follows:
typedef enum {
horizontal,
vertical,
}
shapes;
What switch can I use to get that?
Go to the line that "shapes" is on, and hit C-c C-o. Then press 0 (as that's the offset you want). Then press Enter. Then press tab to indent. Done.
The docs are pretty clear about this process:
http://www.cims.nyu.edu/cgi-comment/info2html?(cc-mode.info)Interactive%2520Customization
精彩评论