Here is a scenario I use constantly in Rust development:
- Rust LSP is always on.
- I call the LSP feature "format current buffer" (or whatever it's called).
- The LSP returns the buffer formatted (internally, the LSP uses
rustfmt
).
Since Emacs Elisp does not have an LSP implementation, how can I achieve something similar? E.g., I wanna press some button and have the code in the buffer be formatted (not just indented, formatted).
P.S. Emacs newbie here, transitioning from Neovim.