jsonian icon indicating copy to clipboard operation
jsonian copied to clipboard

Use jsonian to highlight JSON src blocks

Open jcf opened this issue 10 months ago • 1 comments

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?

jcf avatar Feb 19 '25 10:02 jcf

I didn't know that this was possible. It's definitely worth adding the the ## Integration with 3rd Parties section of the README.md!

iwahbe avatar Feb 20 '25 13:02 iwahbe