summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-02-22 11:43:01 +0100
committerAlan Pearce2017-02-22 11:43:01 +0100
commit26c9e755f3189f873b811225869b2627e52592fd (patch)
tree6e7b5652926816127818623b0ce16f1dd0d85288 /tag-emacs
parent321bf7276b55ed9b26037514bda69b68fcd264e4 (diff)
downloadnixfiles-26c9e755f3189f873b811225869b2627e52592fd.tar.lz
nixfiles-26c9e755f3189f873b811225869b2627e52592fd.tar.zst
nixfiles-26c9e755f3189f873b811225869b2627e52592fd.zip
Emacs: Use eslint_d for flycheck, if installed
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org4
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