add json support in org source block

This commit is contained in:
zedhugh committed 2023-05-26 00:03:15 +08:00
1 parent 6d244c57c4
commit 0b5a4d53f8
1 file changed
+4 -4
+4 -4
View File
@@ -1,18 +1,18 @@
;; -*- coding: utf-8; lexical-binding: t; -*-
(require 'init-treesit)
;; customize mode for src lang
(defconst creature/org-src-lang-modes
(if (bound-and-true-p creature/treesit-available)
'(("js" . js)
("ts" . typescript-ts)
("tsx" . tsx-ts)
("html" . mhtml))
("html" . mhtml)
("json" . js-json))
'(("js" . js)
("ts" . typescript)
("tsx" . typescript-tsx)
("html" . mhtml)))
("html" . mhtml)
("json" . js-json)))
"Better src lang reflex to mode.")
;; enable code block in org file