Emacs creates a schema diagram using Graphviz-dot-mode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.