Need help with emacs-format-all-the-code?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

271 Stars 54 Forks MIT License 265 Commits 23 Opened issues


Auto-format source code in many languages with one command

Services available


Need anything else?

Contributors list

format-all for Emacs

What does it do

Lets you auto-format source code in many languages using the same command for all languages, instead of learning a different Emacs package and formatting command for each language.

Just do M-x

and it will try its best to do the right thing. To auto-format code on save, use the minor mode
. Please see the documentation for that function for instructions.

Supported languages

How to install


You will need to install external programs to do the formatting. If

can't find the right program, it will try to tell you how to install it.

If you have installed a formatter but Emacs cannot find it, Emacs may be using a

different from your shell. The path searched by Emacs is in the
variable. You can easily make it match your shell's
using the exec-path-from-shell package from MELPA.

How to customize

There are currently no customize variables, since it's not clear what approach should be taken. Please see GitHub issues for discussion.

Many of the external formatters support configuration files in the source code directory to control their formatting. Please see the documentation for each formatter.

How to add new languages

New external formatters can be added easily if they can read code from standard input and format it to standard output. Feel free to submit a pull request or ask for help in GitHub issues.

How to report bugs

GitHub issues are preferred. Email is also ok.

Feature requests are welcome. If you are interested in doing anything beyong just adding new formatters in the current framework, please discuss in issues before writing code, since there are big unresolved questions about where the project should go from here.


atom-beautify sports a very impressive set of formatters. We should aspire to that level of coverage for Emacs.

Unibeautify is a project to provide one shell command to run all beautifiers. atom-beautify will be rewritten to be based on it. Perhaps we should be too, once it stabilizes.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.