]> code.delx.au - dotemacs/blobdiff - lisp/my-defuns.el
flycheck improvements
[dotemacs] / lisp / my-defuns.el
index 35cb3051f6892026b32a354bc544f5cf6f4b06dc..ee4d4e49dd6e4fb06d16c1ceaf3d954fa78c36c6 100644 (file)
   "If using a terminal frame then sends the escape codes to update the title."
   (if (terminal-parameter (frame-terminal) 'terminal-initted)
       (send-string-to-terminal (concat "\033]0;" (my/generate-frame-title) "\007"))))
-
-(defun my/use-eslint-from-node-modules ()
-  (let* ((root (locate-dominating-file
-                (or (buffer-file-name) default-directory)
-                "node_modules"))
-         (eslint (and root
-                      (expand-file-name "node_modules/.bin/eslint" root))))
-    (when (and eslint (file-executable-p eslint))
-      (setq-local flycheck-javascript-eslint-executable eslint))))