First of all to install the Graphviz-dot-mode module, list-packages site in the domestic inaccessible, instead of manually download Graphviz-dot-model.el, placed in the ~/.emacs.d/directory.
Then modify the Init.el file:
;; Graphviz-dot-model (load-file "~/.emacs.d/graphviz-dot-model.el")
UBUTNU system to install the Graphviz program,
Apt-get Install Graphviz
Installation is complete.
After you restart Emacs, create the. dot file and I can start working.
Now look at a simple example of the dot language written:
digraph departments {parts [shape=record, label = "<f0> Infrastructure | <f1> Data Warehouse | <f2> data Mining "];}
Diagraph says this is a graph, departments is the ID of this graph
Parts is a node whose shape is a record, which is a continuous grid of records, each of which is a field, and the label is the text that is displayed,<f0> this class identifies each field.
C-c c to generate PNG files:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Emacs creates a schema diagram using Graphviz-dot-mode