all repos — nixfiles @ e88dc6c07d33e734c8059dfe4e01a8556ab8a5f8

System and user configuration, managed by nix and home-manager

Emacs: hook up `standard` and `eslint` if available

Alan Pearce
commit

e88dc6c07d33e734c8059dfe4e01a8556ab8a5f8

parent

7c4e5b86ca9b1712882991d7e3f777db99f01356

1 file changed, 6 insertions(+), 1 deletion(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2296,7 +2296,12 @@
;; #+BEGIN_SRC emacs-lisp (use-package add-node-modules-path :config (progn - (add-hook 'js2-mode-hook #'add-node-modules-path))) + (define-hook-helper js2-mode () + (add-node-modules-path) + (when (executable-find "eslint") + (setq flycheck-javascript-eslint-executable "eslint")) + (when (executable-find "standard") + (setq flycheck-javascript-standard-executable "standard"))))) ;; #+END_SRC ;; ***** Flow