lang/rust: enable rainbow-delimiters-mode #1787
This commit is contained in:
parent
ac87e3d517
commit
e956c0dc5a
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setq rust-indent-method-chain t)
|
(setq rust-indent-method-chain t)
|
||||||
|
(add-hook 'rust-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
;; This is necessary because both plugins are fighting for supremacy in
|
;; This is necessary because both plugins are fighting for supremacy in
|
||||||
;; `auto-mode-alist', so rustic-mode *must* load second. It only needs to
|
;; `auto-mode-alist', so rustic-mode *must* load second. It only needs to
|
||||||
|
@ -51,6 +52,8 @@
|
||||||
;; use :editor format instead
|
;; use :editor format instead
|
||||||
rustic-format-on-save nil)
|
rustic-format-on-save nil)
|
||||||
|
|
||||||
|
(add-hook 'rustic-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
;; `rustic-setup-rls' uses `package-installed-p' unnecessarily, which breaks
|
;; `rustic-setup-rls' uses `package-installed-p' unnecessarily, which breaks
|
||||||
;; because Doom lazy loads package.el.
|
;; because Doom lazy loads package.el.
|
||||||
(defadvice! +rust--disable-package-call-a (orig-fn &rest args)
|
(defadvice! +rust--disable-package-call-a (orig-fn &rest args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue