Ihor Radchenko writes:
> Then, take your time.
All right, I finally found some time.
> My specific suggestion was
> 1. creating ob-graphviz.el that simply loads ob-dot
I did not do this.
> 2. making "graphviz" an alias to "dot" lang name for
>babel
Done in the attached patch 0002 (that b
Rudolf Adamkovič 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
> advic
Ihor Radchenko writes:
> It has been a while.
> Rudolf, may I know if you are still interested in this patch?
I am currently super-duper busy with uni assignments. If you can whip
it out in a couple of minutes, please do. Basically, we want the
`graphviz-dot-mode' to be enabled when editing Gr
Ihor Radchenko writes:
> I would not object making "graphviz" an alias to "dot" lang name for
> babel.
> ...
> I think that the least breaking course of action would be creating
> ob-graphviz.el that simply loads ob-dot.
It has been a while.
Rudolf, may I know if you are still interested in this
Rudolf Adamkovič writes:
> A user of the Org Mode and Graphviz has currently 3 options:
>
> (1) Write `#+begin_src dot':
>
> - lose all benefits of the specialized major mode
> - keep all benefits of Org Babel
There is an option to customize `org-src-lang-modes'.
> (2) Write `#+begin_sr
Ihor Radchenko writes:
> They work. Fundamental mode is usable, isn't it?
As usable as any other language: no syntax highlighting, no correct
indentation, no compilation and run, no code completion, etc.
Instead of theorizing, let me tell you my experience, as a user of the
Org Mode and Graphvi
Rudolf Adamkovič writes:
> 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.
They work. Fundamental mode is usable, isn't it?
In contrast, if you force using graphwiz-dot-mode from
Rudolf Adamkovič 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
officially documented `#+BEGIN_SRC dot' works out of the box too.
Rudy
>From 368a6625b8d812df35e4520e0a02a2e59e604d65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?=
Date: Mon, 17 Feb 2025 21:06:32 +0100
Subject: [PATCH] ob-dot: Add `graphviz-dot' language al