Now that we are loading package autoloads files (as part of the generated doom-package-autoload-file when running make autoloads), many :commands properties are redundant. In fact, many def-package! blocks are redundant. In some cases, we can do without a config.el file entirely, and can move into the autoloads file or rely entirely on package autoloads. Also, many settings have been moved in their module's autoloads files, which makes them available ASAP; their use no longer depends on module load order. This gained me a modest ~10% boost in startup speed. |
||
---|---|---|
.. | ||
autoload.el | ||
config.el | ||
doctor.el | ||
packages.el | ||
README.org |
:lang rust
This module is a work in progress.
This module adds Rust support to Emacs.
- Code completion (
racer
) - Syntax checking (
flycheck
) - Eldoc support (
go-eldoc
) - Snippets
…
Table of Contents TOC
Install
Rust
To get started with Rust, you can either use rustup
and install rust with:
curl https://sh.rustup.rs -sSf | sh
Or through your package manager (which is my preference):
MacOS
brew install rust
cargo install racer
Arch Linux
sudo pacman --needed --noconfirm -S rust rust-racer
Dependencies
This module requires racer
for code completion, which also requires access to Rust's source code.
cargo install racer
git clone https://github.com/rust-lang/rust $RUST_SRC_PATH
Either set $RUST_SRC_PATH
in your shell (so that it's available in Emacs), or adjust +rust-src-dir
to point at the correct directory.