summaryrefslogtreecommitdiff
path: root/lisp/progmodes/json-ts-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/json-ts-mode.el')
-rw-r--r--lisp/progmodes/json-ts-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/progmodes/json-ts-mode.el b/lisp/progmodes/json-ts-mode.el
index fbcda22acca..f54d0187f98 100644
--- a/lisp/progmodes/json-ts-mode.el
+++ b/lisp/progmodes/json-ts-mode.el
@@ -160,6 +160,10 @@ Return nil if there is no name or if NODE is not a defun node."
(treesit-major-mode-setup))
+(if (treesit-ready-p 'json)
+ (add-to-list 'auto-mode-alist
+ '("\\.json\\'" . json-ts-mode)))
+
(provide 'json-ts-mode)
;;; json-ts-mode.el ends here