From cb7134284d2acf529b620466204881f19e5439ee Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 4 Feb 2019 01:33:55 -0800 Subject: [PATCH] Initialize package when running flycheck for Emacs --- oni-flycheck.el | 4 ++++ 1 file changed, 4 insertions(+) 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)