gnu-indent
- Description
- Indent your code with GNU Indent
- Latest
- gnu-indent-1.0.tar (.sig), 2024-Mar-31, 50.0 KiB
- Maintainer
- Akib Azmain Turja <akib@disroot.org>
- Atom feed
- gnu-indent.xml
- Website
- https://codeberg.org/akib/emacs-why-this
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
Keeping code correctly indented can be tedious. And when the project is
large, maintaining a consistent style everywhere by hand can become almost
impossible. gnu-indent
solves this problem by doing the job itself.
Enable gnu-indent-mode
and continue with the your editing; your file will
be reindented by GNU Indent just before saving it maintaining the position
of point.
GNU Indent supports C, C++ is also partially supported.
1. Commands
gnu-indent-mode
- Toggle auto reindentation on save.
gnu-indent-buffer
- Reindent current buffer.
gnu-indent-region
- Reindent current region.
2. User options
gnu-indent-program
- Name of GNU Indent program (default
"indent"
). gnu-indent-options
- Arguments to pass to GNU Indent (default
nil
). See GNU Indent manual (C-h i m Indent RET
on Emacs,info indent
on shell) for available options.