Remove def-menu!; use :localleader keys instead
def-menu was clumsy. We could use a better UI for refactoring commands, but they should be available via localleader keybinds in any case.
This commit is contained in:
parent
d2f9d28577
commit
84abac6b69
7 changed files with 77 additions and 280 deletions
|
@ -7,14 +7,10 @@
|
|||
|
||||
(map! :map rust-mode-map
|
||||
:localleader
|
||||
:n "b" #'+rust/build-menu)
|
||||
|
||||
(def-menu! +rust/build-menu
|
||||
"TODO"
|
||||
'(("cargo run" :exec "cargo run --color always")
|
||||
("cargo build" :exec "cargo build --color always")
|
||||
("cargo test" :exec "cargo test --color always"))
|
||||
:prompt "Cargo: "))
|
||||
:prefix "b"
|
||||
:n "b" (λ! (compile "cargo build --color always"))
|
||||
:n "r" (λ! (compile "cargo run --color always"))
|
||||
:n "t" (λ! (compile "cargo test --color always"))))
|
||||
|
||||
|
||||
(def-package! racer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue