diff --git a/modules/lang/rust/config.el b/modules/lang/rust/config.el index 912003d5c..ec0397c8e 100644 --- a/modules/lang/rust/config.el +++ b/modules/lang/rust/config.el @@ -47,7 +47,12 @@ (setq rustic-indent-method-chain t rustic-flycheck-setup-mode-line-p nil ;; use :editor format instead - rustic-format-on-save nil) + rustic-format-on-save nil + ;; REVIEW `rust-ordinary-lt-gt-p' is terribly expensive in large rust + ;; buffers, so we disable it, but only for evil users, because it + ;; affects `forward-sexp' and its ilk. See + ;; https://github.com/rust-lang/rust-mode/issues/288. + rustic-match-angle-brackets (not (featurep! :editor evil))) (add-hook 'rustic-mode-hook #'rainbow-delimiters-mode)