diff options
author | Alan Pearce | 2017-02-22 11:43:01 +0100 |
---|---|---|
committer | Alan Pearce | 2017-02-22 11:43:01 +0100 |
commit | 26c9e755f3189f873b811225869b2627e52592fd (patch) | |
tree | 6e7b5652926816127818623b0ce16f1dd0d85288 | |
parent | 321bf7276b55ed9b26037514bda69b68fcd264e4 (diff) | |
download | nixfiles-26c9e755f3189f873b811225869b2627e52592fd.tar.lz nixfiles-26c9e755f3189f873b811225869b2627e52592fd.tar.zst nixfiles-26c9e755f3189f873b811225869b2627e52592fd.zip |
Emacs: Use eslint_d for flycheck, if installed
-rw-r--r-- | tag-emacs/emacs.d/init.org | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 0873f31b..3a8e08d8 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 |