To install this package, run in Emacs:
M-x package-install RET gnu-indent RET
Keeping code correctly indented can be tedious. And when the project is
large, maintaining a consistent style everywhere by hand can become almost
gnu-indent solves this problem by doing the job itself.
gnu-indent-mode and continue with the your editing; your file will
be reindented by GNU Indent just before saving it maintaining the position
GNU Indent supports C, C++ is also partially supported.
nil). See GNU Indent manual (
C-h i m Indent RETon Emacs,
info indenton shell) for available options.