开发者

Gnu Emacs indenting of my typedef

开发者 https://www.devze.com 2022-12-25 23:13 出处:网络
Gnu Emacs is insisting on indenting my typedef as follows: typedef enum { horizon开发者_如何学JAVAtal,

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

精彩评论

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