apheleia VS dtrt-indent

Compare apheleia vs dtrt-indent and see what are their differences.

apheleia

🌷 Run code formatter on buffer contents without moving point, using RCS patches and dynamic programming. (by radian-software)

dtrt-indent

A minor mode that guesses the indentation offset originally used for creating source code files and transparently adjusts the corresponding settings in Emacs, making it more convenient to edit foreign files. (by jscheid)
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
apheleia dtrt-indent
8 2
500 175
0.6% -
8.3 6.7
2 days ago 3 months ago
Emacs Lisp Emacs Lisp
MIT License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

apheleia

Posts with mentions or reviews of apheleia. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-22.
  • setup for python dev?
    2 projects | /r/emacs | 22 Jan 2023
    For black, I can recommend apheleia. It handles not only black but also all the other common formatters (not only for Python), with custom ones being relatively easy to add.
  • Emacs 29 is nigh What can we expect?
    31 projects | news.ycombinator.com | 29 Nov 2022
    1.projectile-kill-buffers or the built-in project-kill-buffers will do that for the current project. You could run that before switching projects.

    2. https://github.com/radian-software/apheleia

    3. There might be a way to do this but I'm not sure. Emacs being inherently single threaded probably makes this difficult. But yes, I use M-x (re)compile.

    4. libvterm is the best still imo. You can definitely do multiple instances and there's even different tab modes in Emacs now.

  • What is your fav IDE (incl AddOns)?
    5 projects | /r/Python | 10 Jul 2022
    I forgot to mention a third option namely lassik/emacs-format-all-the-code and there are efforts to combine/consolidate the three into a single package which would be great.
  • Looking for emacs package recommendations for code-formatting in emacs?
    4 projects | /r/emacs | 7 Jun 2022
    raxid502/apheleia
  • Is there any package for automatically insert spaces in c++ code?
    1 project | /r/emacs | 10 Mar 2022
    I use formatters in order to automatically format source code on save. Personally I use apheleia for this. It requires clang-tools installed as it uses clang formatter.
  • We should format code on demand
    7 projects | /r/programming | 1 Mar 2022
  • JSX return indentation
    1 project | /r/emacs | 11 May 2021
    Generally speaking, emacs does only so much for indenting those mixed mode files, so you might want to use a dedicated JS(X)-formatter (default one would be prettier). I can recommend integrating it using apheleia. It automatically prettifies buffers on save, but without having your cursor jump around like prettier-mode does. It also relies on having the prettier script available (from npm i -g prettier or its likes).

dtrt-indent

Posts with mentions or reviews of dtrt-indent. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-29.
  • Emacs 29 is nigh What can we expect?
    31 projects | news.ycombinator.com | 29 Nov 2022
    For #2, I've been pretty happy with dtrt-indent (https://github.com/jscheid/dtrt-indent) for DWIM indentation bouncing between projects.

    I have yet to try apheleia, but I wouldn't be surprised if just enabling apheleia, dtrt-indent, and editorconfig-mode (https://github.com/editorconfig/editorconfig-emacs) in prog-mode-hook just did what you wanted.

  • How to un-indent
    1 project | /r/emacs | 27 Jun 2021
    I have a package (github) that detects the indentation offset and updates the tab-width variable in emacs. Does anyone have a package/function that can use this variable to indent/dedent single or multiple lines?

What are some alternatives?

When comparing apheleia and dtrt-indent you can also consider the following projects:

black - The uncompromising Python code formatter

melpa - Recipes and build machinery for the biggest Emacs package repo

emacs-format-all-the-code - Auto-format source code in many languages with one command

prettier - Prettier is an opinionated code formatter.

gumtree - An awesome code differencing tool

perspective-el - Perspectives for Emacs.

My-Neovim-Config

reformatter.el - Define commands which run reformatters on the current Emacs buffer

prettier.el - Prettier code formatting for Emacs.

emacs-overlay - Bleeding edge emacs overlay [maintainer=@adisbladis]

omnisharp-vscode - Official C# support for Visual Studio Code [Moved to: https://github.com/dotnet/vscode-csharp]

ergoemacs-mode - ergoemacs-mode