summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.el b/init.el
index e87d748..156898a 100644
--- a/init.el
+++ b/init.el
@@ -96,6 +96,8 @@ This functions should be added to the hooks of major modes for programming."
;; flycheck
(add-hook 'after-init-hook #'global-flycheck-mode)
+;;; needed for flychcek to check whether the crate is binary or library
+(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
;; company-mode
(add-hook 'after-init-hook 'global-company-mode)