Gnu Emacs is insisting on indenting my typedef as follows:
typedef enum {
horizontal,
vertical,
}
shapes;
I want it to indent as follows:
typedef enum {
horizontal,
vertical,
}
shapes;
What switch can I use to get that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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