flymake-rust
Emacs Lisp
Switch branches/tags
Nothing to show
Clone or download
João Oliveira
João Oliveira add GPL v3 license, closes #7
Latest commit 2f42d1f Jul 29, 2017
Permalink
Failed to load latest commit information.
LICENSE.md add GPL v3 license, closes #7 Jul 29, 2017
README.md add cargo compiler by-default Oct 2, 2014
flymake-rust.el add GPL v3 license, closes #7 Jul 29, 2017

README.md

flymake-rust.el

An Emacs flymake handler for syntax-checking Rust source code using cargo or rustc.

Installation

If you choose not to use one of the convenient packages in Melpa and Marmalade, you'll need to add the directory containing flymake-rust.el to your load-path, and then (require 'flymake-rust). You'll also need to install flymake-easy.

Usage

Add the following to your emacs init file:

(require 'flymake-rust)
(add-hook 'rust-mode-hook 'flymake-rust-load)

Checker uses cargo by-default. If you want to use rustc compiler, you must add following strings:

(setq flymake-rust-use-cargo nil)
(require 'flymake-rust)
(add-hook 'rust-mode-hook 'flymake-rust-load)

Thanks Steve Purcell for the help