Comments (3)
You are right, I am actually using evil-indent
all the time except in lsp managed buffers where this is handled by the lsp entirely, so I haven't noticed yet.
Lets see how the other package performs.
from spacemacs.
Hmm this doesn't look like a drop in replacement different layers have different formatting functions in place so we cannot use the global config instead we have to configure this in more detail for our own, not to interfere with the existing infrastructure.
I may have a look into this when I find the time if nobody else wants to tackle this in the meantime.
from spacemacs.
I have had a look into apheleia unfortunately this is only a controller for formatters it does not provide concrete formatter implementations except some sample ones for php, js and go.
While such a system is nice I would not focus on modernizing it as all newer modes move to LSP servers anyway which handle the formatting on a much more efficient manner outside of emacs. Legacy modes can work with srefactor as long as they are maintained.
One of the big exceptions there is elisp, here however I have not seen a suitable formatter for this yet. For now I have added an additional binding for SPC m = =
which will format the buffer using core functions which use evil-indent internally. This gives reasonable results.
Now all elisp buffers are formatted on save by default just like in go. This should also make reviewing code change easier.
If you have found a suitable external formatter for elisp feel free to open a PR or feature ticket for it, until we have one we are using the internal one.
from spacemacs.
Related Issues (20)
- `n` navigation key can search in the wrong direction after exiting `symbol-highlight-transient-state` HOT 1
- Lsp layer changes latex keybindings HOT 5
- Help to add contrib-roam2.el to spacemacs
- M-x broken in the magit status buffer (and potentially others too) HOT 8
- Many shortcuts broken (byte-code: Key sequence M-m h d m starts with non-prefix key M-m) HOT 3
- [low-prio] Warning (lsp-mode): Unknown notification: semgrep/rulesRefreshed HOT 2
- spacemacs fails to start on my emacs for android HOT 3
- Vterm shell doesn't open expectedly HOT 1
- Cannot enable dotspacemacs-swap-number-row.
- error (use-package) - symbol's fuction definition is void HOT 9
- Error (use-package) : org-projectile/:init: -- no such file or directory : org-projecticle HOT 4
- How to install source code pro? HOT 1
- "dotspacemacs-auto-save-file-location" not triggering "after-save-hook"? HOT 2
- helm-spacemacs-help-faq (M-m h f) fails with "if: Wrong type argument: stringp, helm"
- Cannot create new file if similar name exists HOT 7
- Need a Brawlstar plugin
- Compleseus and ripgrep filter ? HOT 1
- (error "Key sequence m - m starts with non-prefix key m") HOT 6
- built-in org package used. why? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spacemacs.