Anyone using code formatter for elisp?

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

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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.

  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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

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

  • trivial-formatter

    Code formatter for common lisp.

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

  • 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.

  • 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.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub 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
  • The Loudest Lisp Program

    4 projects | news.ycombinator.com | 3 May 2024