Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jsonian to highlight JSON src blocks #57

Open
jcf opened this issue Feb 19, 2025 · 1 comment
Open

Use jsonian to highlight JSON src blocks #57

jcf opened this issue Feb 19, 2025 · 1 comment

Comments

@jcf
Copy link

jcf commented Feb 19, 2025

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?

@iwahbe
Copy link
Owner

iwahbe commented Feb 20, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants