summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-09 15:51:43 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-09 15:51:43 -0700
commit18cf800e18733efb828a03ecd1800f4aa8e34ef4 (patch)
tree5df04f45cb1eb1151d23aba905c784b6aaaab098
parent32d27621fc0430a10c8b06ed0142f8c7605d3b55 (diff)
Fix flycheck-rust not detecting binary crates
-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)