fix(graphviz): org babel integration

Forgot that `ob-dot.el` exists in Org. I blindly expected the
`graphviz-dot-mode` package to provide babel support in f6b7e8a.

Also, `org-src-lang-modes` expects its CDRs to omit the -mode suffix,
which should fix syntax highlighting of graphviz/dot babel blocks.

Amend: f6b7e8ae48
Ref: #7546
This commit is contained in:
Henrik Lissner 2024-09-12 03:51:38 -04:00
parent 37dbc99778
commit be422c4516
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -4,8 +4,7 @@
:mode "\\.\\(?:nw\\|rack\\)diag\\'"
:init
(after! org-src
(add-to-list '+org-babel-mode-alist '(dot . graphviz-dot-mode))
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot-mode)))
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot)))
:config
(set-company-backend! 'graphviz-dot-mode 'company-graphviz-dot-backend)
(set-formatter! 'graphviz-dot #'+graphviz-formatter :modes '(graphviz-dot-mode))