diff --git a/lib/extensions/rust.el b/lib/extensions/rust.el index 3844afd..0c4e218 100644 --- a/lib/extensions/rust.el +++ b/lib/extensions/rust.el @@ -6,9 +6,8 @@ (require 'extensions/rust/init) ;; dependencies -(depends-on 'rust-mode) -(depends-on 'cargo) -(depends-on 'flycheck-rust) +(depends-on 'rustic) + (extension rust :version 0.0.1 diff --git a/lib/extensions/rust/init.el b/lib/extensions/rust/init.el index 76bd078..99a0b1c 100644 --- a/lib/extensions/rust/init.el +++ b/lib/extensions/rust/init.el @@ -6,9 +6,7 @@ ;;;###autoload (defun extensions/rust-initialize () "Initialize Rust extension." - (add-hook 'rust-mode-hook #'lsp) - (add-hook 'rust-mode-hook #'cargo-minor-mode) - (add-hook 'flycheck-mode-hook #'flycheck-rust-setup)) + (setq rustic-format-trigger 'on-save)) (provide 'extensions/rust/init)