rustic
This commit is contained in:
parent
488f67890e
commit
f2a951ca7f
2 changed files with 20 additions and 0 deletions
10
README.org
10
README.org
|
|
@ -3825,10 +3825,20 @@ I'd like to start learning and using rust if I can.
|
|||
rust-format-on-save t
|
||||
rustic-cargo-clippy-trigger-fix t
|
||||
rustic-cargo-clippy-fix-args "--allow-dirty"
|
||||
rustic-cargo-test-disable-warnings t
|
||||
rustic-cargo-test-runner 'nextest
|
||||
rustic-format-trigger 'on-save
|
||||
rustic-test-arguments "--benches --tests --all-features -- --nocapture")
|
||||
|
||||
(defun chris/rustic-setup ()
|
||||
"setup some more stuff for rustic mode"
|
||||
(setq rustic-compile-command "just r"))
|
||||
(add-hook 'rustic-mode-hook #'chris/rustic-setup)
|
||||
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
|
||||
|
||||
:general
|
||||
(general-def 'normal rustic-mode-map
|
||||
"!" 'rustic-run-shell-command
|
||||
|
|
|
|||
10
init.el
10
init.el
|
|
@ -2823,10 +2823,20 @@ current buffer's, reload dir-locals."
|
|||
rust-format-on-save t
|
||||
rustic-cargo-clippy-trigger-fix t
|
||||
rustic-cargo-clippy-fix-args "--allow-dirty"
|
||||
rustic-cargo-test-disable-warnings t
|
||||
rustic-cargo-test-runner 'nextest
|
||||
rustic-format-trigger 'on-save
|
||||
rustic-test-arguments "--benches --tests --all-features -- --nocapture")
|
||||
|
||||
(defun chris/rustic-setup ()
|
||||
"setup some more stuff for rustic mode"
|
||||
(setq rustic-compile-command "just r"))
|
||||
(add-hook 'rustic-mode-hook #'chris/rustic-setup)
|
||||
|
||||
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-error)
|
||||
(add-to-list 'compilation-error-regexp-alist rustic-compilation-warning)
|
||||
|
||||
:general
|
||||
(general-def 'normal rustic-mode-map
|
||||
"!" 'rustic-run-shell-command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue