Difference between revisions of "Rust"
Jump to navigation
Jump to search
(Rust !) |
(→rust-mode: in debian) |
||
Line 4: | Line 4: | ||
[https://github.com/rust-lang/rust-mode rust-mode] (in [[MELPA]]) offers syntax highlighted and code formatting. | [https://github.com/rust-lang/rust-mode rust-mode] (in [[MELPA]]) offers syntax highlighted and code formatting. | ||
+ | |||
+ | In Debian testing and unstable you can also install it with <code>apt install elpa-rust-mode</code> (but the MELPA way is prefered). | ||
[[File:rust-autocomplete.png|700px]] | [[File:rust-autocomplete.png|700px]] |
Revision as of 14:36, 22 May 2017
Let's setup Emacs for Rust development, shall we ?
rust-mode
rust-mode (in MELPA) offers syntax highlighted and code formatting.
In Debian testing and unstable you can also install it with apt install elpa-rust-mode
(but the MELPA way is prefered).
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)