Add rust config

This commit is contained in:
Maciej 2018-09-09 20:51:45 +03:00
parent 46c73d8e9b
commit 2b1be43977
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 23 additions and 1 deletions

11
20rust.el Normal file
View file

@ -0,0 +1,11 @@
(defun activate-rust-mode ()
"All things for Rust mode"
(interactive)
(set-indent 4)
(column-enforce-n 99))
;; (flymake-rust-setup))
(add-hook 'rust-mode-hook 'activate-rust-mode)
(add-hook 'rust-mode-hook 'racer-mode)
(add-hook 'rust-mode-hook 'flycheck-rust-setup)