jsonian
jsonian copied to clipboard
Use jsonian to highlight JSON src blocks
This small snippet will teach Org-mode about jsonian:
(add-to-list 'org-src-lang-modes '("json" . jsonian))
For anyone using Doom, this configuration is working well for me:
(use-package! jsonian
:mode ("\\.json\\'" . jsonian-mode)
:config
;; I haven't tested flycheck or so-long-mode support. 🙈
(add-hook 'flycheck-mode-hook #'jsonian-enable-flycheck)
(add-hook 'so-long-mode-hook #'jsonian-no-so-long-mode))
(after! org
(add-to-list 'org-src-lang-modes '("json" . jsonian)))
I'm not sure this belongs in jsonian, but could be worth mentioning in the docs?
I didn't know that this was possible. It's definitely worth adding the the ## Integration with 3rd Parties section of the README.md!