February 7, 2021
Configuring Emacs for Rust development
Rust support in Emacs improved a lot during the past two years. This post will walk you through setting up Emacs to allow for:
Navigating the source code (go to to implementation, list references, outline module structure) Code completion Code snippets Highlighting errors and warnings inline Apply code fixes and refactorings Automatically import definitions if necessary (such as for Traits) Code formatting with rustfmt Building & running other cargo commands This setup will be based on rust-analyzer, a LSP server that is under very active development and powers the Rust support in VS Code as well.
Read more