Rudy’s OBTF Rudolf Adamkovič

Home / Emacs


Graphviz

Graphviz

Install the Emacs package.

(with-eval-after-load 'package
  (add-to-list 'package-selected-packages 'graphviz-dot-mode))

Note. Homebrew* Graphviz configuration

installs the actual program.

Indent with 2 instead of 4 spaces.

(with-eval-after-load 'graphviz-dot-mode
  (setopt graphviz-dot-indent-width 2))

This is currently unused:

<<dot-theme>>

newrank = true  // rank across clusters
compound = true // allow edges between clusters

fontname = "Charter"
node [fontname = "Charter"]
edge [fontname = "Charter"]

Usage with noweb:

digraph {
<<graph-init>>
Test
}
d094d068-e094-4ed5-98ec-f1d04053ffe0.svg

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.