mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
lang/rust: refactor racer config + add +rust/install-racer command (WIP)
This commit is contained in:
11
modules/lang/rust/autoload.el
Normal file
11
modules/lang/rust/autoload.el
Normal file
@ -0,0 +1,11 @@
|
||||
;;; lang/rust/autoload.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +rust/install-racer ()
|
||||
"Install and compile racer server."
|
||||
(interactive)
|
||||
(let ((racer-dir (expand-file-name "racer" +rust-cache-dir)))
|
||||
(doom-fetch :github "rust-lang/rust.git" (expand-file-name "rust" +rust-cache-dir))
|
||||
(doom-fetch :github "phildawes/racer.git" racer-dir)
|
||||
(let ((default-directory racer-dir))
|
||||
(doom-sh "cargo build --release"))))
|
Reference in New Issue
Block a user