Clean up
This commit is contained in:
parent
f9c19b549d
commit
27f7fae118
5 changed files with 32 additions and 38 deletions
|
@ -12,6 +12,7 @@
|
|||
:mode "\\.rs$"
|
||||
:config
|
||||
(define-builder! rust-mode "cargo run" "Cargo.toml")
|
||||
|
||||
(use-package flycheck-rust
|
||||
:config (add-hook! rust-mode 'flycheck-mode))
|
||||
|
||||
|
@ -21,12 +22,8 @@
|
|||
(setq racer-cmd "/usr/local/bin/racer"
|
||||
racer-rust-src-path "~/Dropbox/lib/rust/src/")
|
||||
|
||||
(add-company-backend! rust-mode (racer))
|
||||
|
||||
(add-hook! rust-mode
|
||||
(racer-activate)
|
||||
(racer-turn-on-eldoc)
|
||||
(add-hook! flycheck-mode 'flycheck-rust-setup))))
|
||||
(add-hook! rust-mode '(racer-mode eldoc-mode flycheck-rust-setup))
|
||||
(add-company-backend! rust-mode (racer))))
|
||||
|
||||
(provide 'module-rust)
|
||||
;;; module-rust.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue