Rudolf Adamkovič <rud...@adamkovic.org> writes:

Greetings, Org hackers!

I noticed that `dot' source blocks do not work out of the box: C-c C-c works but C-c ' uses the Fundamental mode, even with the Graphviz MELPA
package installed.

This is because the major mode for the Dot language is `graphviz-dot' and not `dot'. The attached patch improves the situation for the source blocks defined as `#+BEGIN_SRC graphviz-dot', namely it makes C-c C-c
work with them.

P.S. As the next step, we could perhaps rename `ob-dot' to
`ob-graphviz-dot' and make `dot' the alias, not `graphviz-dot', so that the officially documented `#+BEGIN_SRC dot' works out of the box too.

Rudy

[2. text/x-patch; 0001-ob-dot-Add-graphviz-dot-language-alias.patch]...

Alternatively, change the default value of org-src-lang-modes to include an entry that associates dot files with graphviz-dot mode?

All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye

Reply via email to