Having used clang-format to format the buffer when saving, I find this functionality useful.

Are there tools to reformat an Elisp buffer when saving?


1 Answer 1


Since asking this question I've written an auto-formatter that runs on save.

Other elisp formatting tools I found caused a *lot* of right-shift and didn't seem well maintained.

See: elisp-autofmt.

This can be configured to run for some projects and not others. While this runs on save, it first checks for .elisp-autofmt before re-formatting the buffer.

See other auto-formatting tools for reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.