auto-complete source for Rust
Repository
https://github.com/syohex/emacs-ac-racer
How to use
- Install rust(https://www.rust-lang.org/install.html)
- Install racer(https://github.com/phildawes/racer)
(defun my/racer-mode-hook () (ac-racer-setup)) (add-hook 'racer-mode-hook 'my/racer-mode-hook) (custom-set-variables '(racer-cmd (expand-file-name "~/src/racer/target/release/racer")) '(racer-rust-src-path (expand-file-name "~/src/rustc/src")))
You must set racer-cmd
and racer-rust-src-path
. (racer-cmd
is path of racer
command. racer-rust-src-path
is path of rustc source code)
Summary
ac-racer is alpha quality. Please report me via github issues or twitter if you have any suggestions or issues.