rust: switch from rust-mode to rustic
This commit is contained in:
parent
1b1643a1a5
commit
7ee7f05468
25
init.el
25
init.el
@ -654,23 +654,24 @@ inserted between the braces between the braces."
|
|||||||
|
|
||||||
;;; ### Rust ###
|
;;; ### Rust ###
|
||||||
|
|
||||||
(use-package cargo
|
;;; If you have [Rustup](https://www.rust-lang.org/learn/get-started)
|
||||||
:defer)
|
;;; than you should install component `rls` with the command
|
||||||
|
;;;
|
||||||
|
;;; ```
|
||||||
|
;;; $ rustup component add rls
|
||||||
|
;;; ```
|
||||||
|
;;;
|
||||||
|
;;; and then add to config file
|
||||||
|
|
||||||
(use-package racer
|
(use-package lsp-mode
|
||||||
:defer)
|
:commands lsp)
|
||||||
|
|
||||||
(use-package rust-mode
|
(use-package rustic
|
||||||
:init
|
:init
|
||||||
(setq company-tooltip-align-annotations t
|
(setq company-tooltip-align-annotations t
|
||||||
rust-format-on-save t)
|
rustic-format-on-save t)
|
||||||
:config
|
|
||||||
(add-hook 'rust-mode-hook #'company-mode)
|
|
||||||
(add-hook 'rust-mode-hook #'cargo-minor-mode)
|
|
||||||
(add-hook 'rust-mode-hook #'racer-mode)
|
|
||||||
(add-hook 'racer-mode-hook #'eldoc-mode)
|
|
||||||
:bind
|
:bind
|
||||||
(:map rust-mode-map
|
(:map rustic-mode-map
|
||||||
("C-i" . company-indent-or-complete-common)))
|
("C-i" . company-indent-or-complete-common)))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user