2020-03-18 10:31:55 +00:00
|
|
|
;;; rust-init --- The entry point for Rust extension
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
|
|
|
|
2020-05-19 09:35:52 +01:00
|
|
|
|
|
|
|
;;;###autoload
|
2020-03-18 10:31:55 +00:00
|
|
|
(defun extensions/rust-initialize ()
|
2020-03-18 12:11:20 +00:00
|
|
|
"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))
|
2020-05-19 09:35:52 +01:00
|
|
|
|
|
|
|
|
2020-03-18 10:31:55 +00:00
|
|
|
(provide 'extensions/rust/init)
|
2020-05-19 09:35:52 +01:00
|
|
|
;;; init.el ends here
|