Reduce def-package magic; explicitly use :when property
This commit is contained in:
parent
e4b5cf5a56
commit
3e63d2d23b
19 changed files with 55 additions and 37 deletions
|
@ -22,14 +22,16 @@
|
|||
racer-rust-src-path (expand-file-name "rust/src/" +rust-cache-dir))
|
||||
|
||||
;; TODO Unit test keybinds
|
||||
(set! :company-backend 'rust-mode '(company-racer))
|
||||
(map! :map rust-mode-map :m "gd" 'racer-find-definition))
|
||||
|
||||
|
||||
(def-package! company-racer
|
||||
:after racer)
|
||||
:when (featurep! :completion company)
|
||||
:after racer
|
||||
:config (set! :company-backend 'rust-mode '(company-racer)))
|
||||
|
||||
|
||||
(def-package! flycheck-rust
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:after rust-mode)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue