GNU Emacs Manual. Node: Custom C Indent

PREVC Indent UPProgram Indent next

20.5.5: Customizing C Indentation

C mode and related modes use a simple yet flexible mechanism for customizing indentation. The mechanism works in two steps: first it classifies the line syntactically according to its contents and context; second, it associates each kind of syntactic construct with an indentation offset which you can customize.

  • Syntactic Analysis
  • Indentation Calculation
  • Changing Indent Style
  • Syntactic Symbols
  • Variables for C Indent
  • C Indent Styles
  • PREVC Indent UPProgram Indent next