From 0b5a4d53f8f7b01526aa78246c706eac95d77fd1 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Thu, 25 May 2023 22:55:00 +0800 Subject: [PATCH] add json support in org source block --- lisp/init-org.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/init-org.el b/lisp/init-org.el index 6025f37..ca9fb80 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -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