Gnu Emacs 缩进我的 typedef

4 c emacs indentation

Gnu Emacs 坚持按如下方式缩进我的 typedef:

typedef enum {
    horizontal,
    vertical,
}
    shapes;
Run Code Online (Sandbox Code Playgroud)

我希望它缩进如下:

typedef enum {
    horizontal,
    vertical,
}
shapes;
Run Code Online (Sandbox Code Playgroud)

我可以使用什么开关来获得它?

jro*_*way 5

转到“形状”所在的行,然后点击 Cc Co。然后按 0(因为这是您想要的偏移量)。然后按 Enter。然后按 Tab 键缩进。完毕。

文档对这个过程非常清楚:

http://www.cims.nyu.edu/cgi-comment/info2html?(cc-mode.info)Interactive%2520Customization