From 26c9e755f3189f873b811225869b2627e52592fd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 Feb 2017 11:43:01 +0100 Subject: Emacs: Use eslint_d for flycheck, if installed --- tag-emacs/emacs.d/init.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 0873f31..3a8e08d 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1734,7 +1734,9 @@ On-the-fly error checking in programming modes? Yes please. :defer 5 :config (progn (global-flycheck-mode) - (setq flycheck-check-syntax-automatically '(save new-line mode-enabled)))) + (setq flycheck-check-syntax-automatically '(save new-line mode-enabled)) + (if (executable-find "eslint_d") + (setq flycheck-javascript-eslint-executable (executable-find "eslint_d"))))) #+END_SRC ** golang -- cgit 1.4.1