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 inf6b7e8a
. 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:
parent
37dbc99778
commit
be422c4516
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue