Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Org Babel doesn't load Graphviz editing mode for dot sources

#+begin_src dot :file diagram.png
<some diagram code>
#+end_src

When I C-c ' on this block, the content opens in Fundamental mode (but I have Graphviz mode installed). How do I tell Org / Babel to use that mode?


1 Answers

As far as I understand the problem lies with the major-mode name. I solved the issue with the following line of code:

(add-to-list 'org-src-lang-modes (quote ("dot" . graphviz-dot)))
like image 128
user588873 Avatar answered Oct 27 '25 01:10

user588873