开发者

Gnu Emacs indenting of my typedef

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜