Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rksm/emacs-rust-config
emacs.d files for making Emacs a Rust development environment
https://github.com/rksm/emacs-rust-config
emacs rust
Last synced: 3 months ago
JSON representation
emacs.d files for making Emacs a Rust development environment
- Host: GitHub
- URL: https://github.com/rksm/emacs-rust-config
- Owner: rksm
- License: mit
- Created: 2021-02-07T15:07:00.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T15:50:55.000Z (10 months ago)
- Last Synced: 2024-10-13T10:26:17.169Z (4 months ago)
- Topics: emacs, rust
- Language: Emacs Lisp
- Homepage:
- Size: 27.3 KB
- Stars: 93
- Watchers: 5
- Forks: 28
- Open Issues: 2
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+STARTUP: showeverything
* .emacs.d config for Rust
This accompanies my [[https://robert.kra.hn/posts/rust-emacs-setup/]["Configuring Emacs for Rust development" blog post]].
It uses rust-anlyzer via rustic, lsp-mode, and lsp-ui-mode and also makes use of company, flycheck, and yasnippet. Among those features you get are
- Navigating the source code (go to to implementation, list references of symbols, outline structure of a file)
- Code completion ("intellisense")
- Code snippets
- Highlighting errors and warnings inline
- Apply code fixes and refactorings
- Automatically import definitions if necessary (such as Traits)
- Code formatting with rustfmt
- Building & running other cargo commandsThe actual configuration lives in [[./init.el][init.el]]. Feel free to copy and paste as you see fit.
To run emacs with just this config, clone this repo, then:
#+begin_src shell
emacs -q --load "/path/to/standalone.el"
#+end_src** License
[[./LICENSE][MIT licensed]]