apheleia
dtrt-indent
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 | - |
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
-
setup for python dev?
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?
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)?
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?
raxid502/apheleia
-
Is there any package for automatically insert spaces in c++ code?
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
-
JSX return indentation
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
-
Emacs 29 is nigh What can we expect?
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
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?
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