summaryrefslogtreecommitdiff
path: root/lisp/json.el
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2022-10-16 09:49:00 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2022-10-16 09:49:00 -0400
commit71fab635ea3d8bd9996e4c97681e2c26a5cacc9f (patch)
treee5e8cd72cf0df7ec6174c054cbd4b17194572e6f /lisp/json.el
parent0a62d8b4328eae95d3a421cbd4b85b662cd99d17 (diff)
Eslint mode for Javascript
Diffstat (limited to 'lisp/json.el')
-rw-r--r--lisp/json.el15
1 files changed, 12 insertions, 3 deletions
diff --git a/lisp/json.el b/lisp/json.el
index f65b7b8..d1093cf 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -1,8 +1,17 @@
;;; Code:
-(autoload 'json-mode "json-mode"
- "Use the json-mode package to provide 'json-mode on-demand."
- t)
+(add-to-list 'auto-mode-alist '(".eslintrc'" . json-mode))
+
+(require 'flycheck)
+(flycheck-add-mode 'json-jslint 'json-mode)
+
+(defun my-json-mode-hook ()
+ "Turn off eglot in JSON mode."
+ (require 'eglot)
+ (flymake-mode 0)
+ )
+
+(add-hook 'json-mode-hook 'my-json-mode-hook)
(provide 'json)
;;; json.el ends here