Gnu Emacs in the fingerprint of my typedef

Gnu Emacs insists on undoing my typedef as follows:

typedef enum { horizontal, vertical, } shapes; 

I want it to be indented as follows:

 typedef enum { horizontal, vertical, } shapes; 

Which switch can I use for this?

+4
source share
1 answer

Scroll to the line in which β€œshapes” are included, and press Cc Co. Then press 0 (as you want the offset). Then press Enter. Then click the tab for indentation. Done.

The docs are pretty clear in this process:

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

+4
source

Source: https://habr.com/ru/post/1306433/


All Articles