aboutsummaryrefslogtreecommitdiffstats
path: root/oni-flycheck.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-02-04 01:33:55 -0800
committerGravatar Tom Willemse2019-02-04 01:33:55 -0800
commitcb7134284d2acf529b620466204881f19e5439ee (patch)
tree9c1f01780bc76c9b72fe47c926c859658c2c1e35 /oni-flycheck.el
parentd65fcaba2af7ad7e2d514970ae827183639d6c23 (diff)
downloademacs-config-cb7134284d2acf529b620466204881f19e5439ee.tar.gz
emacs-config-cb7134284d2acf529b620466204881f19e5439ee.zip
Initialize package when running flycheck for Emacs
Diffstat (limited to 'oni-flycheck.el')
-rw-r--r--oni-flycheck.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/oni-flycheck.el b/oni-flycheck.el
index 6a6656f..3c7784b 100644
--- a/oni-flycheck.el
+++ b/oni-flycheck.el
@@ -50,6 +50,10 @@
(when (not (eql system-type 'windows-nt))
(setq flycheck-mode-line-prefix "✓"))
+(setq flycheck-emacs-args
+ (append '("--eval" "(package-initialize)")
+ flycheck-emacs-args))
+
(add-hook 'flycheck-mode-hook 'flycheck-cask-setup)
(add-hook 'flycheck-mode-hook 'flycheck-inline-mode)