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

> I am currently super-duper busy with uni assignments.
> ...

Then, take your time.

> ...  Basically, we want the
> `graphviz-dot-mode' to be enabled when editing GraphViz Dot code blocks,
> while also retaining DWIM executing via Org Babel. If I understand your
> advice correctly, it comes down to adding one alias somewhere in Org.

My specific suggestion was
1. creating ob-graphviz.el that simply loads ob-dot
2. making "graphviz" an alias to "dot" lang name for
   babel

For the question of editing, it may be more tricky - we may need to
implement fallback editing mode if the default is not available.
Maybe it is just a question is a simple change in
`org-src-get-lang-mode'. But one need to look into Org codebase and make
sure that nothing is broken or inconsistent as a result.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to