Rust

From WikEmacs
Revision as of 14:40, 22 May 2017 by Elvince (talk | contribs) (→‎rust-mode: navigation by semantics (?))
Jump to navigation Jump to search

Let's setup Emacs for Rust development, shall we ?

rust-mode

rust-mode (in MELPA) offers syntax highlighted, code formatting, Imenu support, naviation by semantics (go to the beginning or end of the current defun),…

In Debian testing and unstable you can also install it with apt install elpa-rust-mode (but the MELPA way is prefered).


700px

Code formatting with rustfmv

Formatting is also provided by this mode. If you want auto formatting everytime you save a buffer, put this in your Init File:

(setq rust-format-on-save t)