Fix racer-find-definition
This commit is contained in:
parent
6e30bca095
commit
38b251c954
1 changed files with 3 additions and 2 deletions
|
@ -12,16 +12,17 @@
|
||||||
:mode "\\.rs$"
|
:mode "\\.rs$"
|
||||||
:config
|
:config
|
||||||
(define-builder! rust-mode "cargo run" "Cargo.toml")
|
(define-builder! rust-mode "cargo run" "Cargo.toml")
|
||||||
|
(define-builder! toml-mode "cargo run" "Cargo.toml")
|
||||||
|
|
||||||
(use-package flycheck-rust
|
(use-package flycheck-rust
|
||||||
:config (add-hook! rust-mode 'flycheck-mode))
|
:config (add-hook! rust-mode 'flycheck-mode))
|
||||||
|
|
||||||
(use-package racer
|
(use-package racer
|
||||||
:if (! (file-exists-p "/usr/local/bin/racer"))
|
:if (file-exists-p "/usr/local/bin/racer")
|
||||||
:config
|
:config
|
||||||
(setq racer-cmd "/usr/local/bin/racer"
|
(setq racer-cmd "/usr/local/bin/racer"
|
||||||
racer-rust-src-path "~/Dropbox/lib/rust/src/")
|
racer-rust-src-path "~/Dropbox/lib/rust/src/")
|
||||||
(bind! :m "gd" 'racer-find-definition)
|
(bind! :map rust-mode-map :m "gd" 'racer-find-definition)
|
||||||
|
|
||||||
(add-hook! rust-mode '(racer-mode eldoc-mode flycheck-rust-setup))
|
(add-hook! rust-mode '(racer-mode eldoc-mode flycheck-rust-setup))
|
||||||
(define-company-backend! rust-mode (racer))))
|
(define-company-backend! rust-mode (racer))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue