prettier-rc-emacs
editorconfig-emacs
prettier-rc-emacs | editorconfig-emacs | |
---|---|---|
1 | 6 | |
3 | 726 | |
- | 0.3% | |
0.0 | 5.8 | |
about 2 years ago | about 1 month ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
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.
prettier-rc-emacs
editorconfig-emacs
-
How Do I Make Emacs Have IDE-Like Indentation On The Fly?
I might be misunderstanding, but would something like EditorConfig help? I have found it does a really good job of configuring indentation behavior for projects that use EditorConfig.
-
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.
-
Eglot has landed on master: Emacs now has a built-in LSP client
> My only complaint is that I can never get Emacs's indentation to match what Prettier wants to do, so I'll type a bunch of code, prettier-on-save, and everything gets moved around.
I had this same issue, and it was annoying enough I continued to use https://github.com/editorconfig/editorconfig-emacs alongside prettier.
This does create another annoyance in having to configure editorconfig for new projects instead of relying on prettier alone.
-
How to Change Autoindent from 2 to 4
Please take a look at Editor Config. It makes handling indentation specifics easy, here a link to the Emacs package.
-
Is there a package or command out there that can add a newline at the end of the file if it doesn't exist?
I am using https://github.com/editorconfig/editorconfig-emacs
-
Editorconfig and tabs/spaces
According to the repo you should only need to enable (editorconfig-mode 1) in the init, but there's also a troubleshooting section that might help out for your specific situation. Hope that helps!
What are some alternatives?
lsp-mode - Emacs client/library for the Language Server Protocol
prelude - Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
auto-complete - Emacs auto-complete package
projectile - Project Interaction Library for Emacs
prettier - Prettier is an opinionated code formatter.
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
web-mode - web template editing mode for emacs
doomemacs - An Emacs framework for the stubborn martian hacker
neovim - Vim-fork focused on extensibility and usability
GNU Emacs - Mirror of GNU Emacs
Elpy - Emacs Python Development Environment
emacs-direnv - direnv integration for emacs