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.
Add MELPA to
M-x package-install RET gnu-indent.
M-x quelpa RET gnu-indent, Quelpa should get the recipe from MELPA and
Put this in
(straight-use-package 'gnu-indent) your init file,
Straight.el should get the recipe from MELPA and install it.
You'd probably want to set it as a file local variable. See GNU Indent
C-h i m Indent RET on Emacs,
info indent on shell) for