Anyone using code formatter for elisp?

This page summarizes the projects mentioned and recommended in the original post on /r/emacs

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
Nutrient - The #1 PDF SDK Library
Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.
nutrient.io
featured
  1. semantic-refactor

    Semantic Refactor is a refactoring tool based on Semantic parser framework

    For elisp, I have been using srefactor for a long time, but it has quite a few issues have not been update in 5 years. Most other formatters for elisp/lisp that I have seen has some subtle issues or just does not handle splitting of long lines. People also have suggested just using aggressive-indent-mode and then putting the line breaks manually, but I was hoping to avoid having to decide where/when to split long lines as well.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. aggressive-indent-mode

    Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.

    For elisp, I have been using srefactor for a long time, but it has quite a few issues have not been update in 5 years. Most other formatters for elisp/lisp that I have seen has some subtle issues or just does not handle splitting of long lines. People also have suggested just using aggressive-indent-mode and then putting the line breaks manually, but I was hoping to avoid having to decide where/when to split long lines as well.

  4. lisp-format

    A tool to format lisp code. Designed to mimic clang-format.

    Projects that I am aware of: - https://github.com/eschulte/lisp-format - https://gitlab.com/ideasman42/emacs-elisp-autofmt

  5. Projects that I am aware of: - https://github.com/eschulte/lisp-format - https://gitlab.com/ideasman42/emacs-elisp-autofmt

  6. trivial-formatter

    Code formatter for common lisp.

    There is also this one for CL, so it could help: https://github.com/hyotang666/trivial-formatter

  7. cl-indentify

    Automatic indentation for Common Lisp

    Also https://github.com/yitzchak/cl-indentify, but AFAIR there was some indentation subtleties that broke Emacs'/Slime default.

  8. colisper

    Check and transform Lisp code with Comby (beta)

    It's also possible to run emacs in batch mode to indent a file: https://github.com/vindarel/colisper/blob/master/emacs-batch-indent.el I don't recall, maybe it won't fix very ill-indented files.

  9. Nutrient

    Nutrient - The #1 PDF SDK Library. Bad PDFs = bad UX. Slow load times, broken annotations, clunky UX frustrates users. Nutrient’s PDF SDKs gives seamless document experiences, fast rendering, annotations, real-time collaboration, 100+ features. Used by 10K+ devs, serving ~half a billion users worldwide. Explore the SDK for free.

    Nutrient logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • TIL sort is destructive

    1 project | /r/Common_Lisp | 23 Apr 2021
  • Common Lisp code quality assessment

    3 projects | /r/lisp | 16 Jan 2021
  • Improving REPL experience in terminal?

    11 projects | /r/lisp | 17 May 2023
  • Rewrite (rule based Lisp (sort of))

    2 projects | /r/lisp | 4 Jul 2022
  • Macintosh Allegro Common Lisp

    2 projects | news.ycombinator.com | 3 Feb 2025

Did you know that Emacs Lisp is
the 27th most popular programming language
based on number of references?