+ Uses alist variable to store config, rather than hooks + Added check for installed docsets in +lookup/documentation + Set docsets for various language modules (c-mode, c++-mode, css-mode, scss-mode, sass-mode, web-mode, go-mode, racket-mode, emacs-lisp-mode, js2-mode, rjsx-mode, typescript-mode, rust-mode, and php-mode) + Made *eww* popups for dash docsets larger + Renamed set-docset! => set-docsets! (set-docset! is aliased to set-docsets!) + New +lookup/install-docset alias |
||
---|---|---|
.. | ||
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.