Major mode for Graphviz files.
Supports
- Xref navigation of node definitions & references within the same file
- Generating png preview files using the
dotexecutable
Adds the following keybindings
| Keybinding | Feature |
|---|---|
| C-c C-c | Generate preview file |
| C-c C-o | Generate preview file and open it |
| C-c ! | Inserts the bootstrap template |
| C-c i r | Inserts a record |
| C-c i c | Inserts a cylinder |
| C-c i n | Inserts a node |
- Install the latest Grapvhiz executable package with the
dotexecutable
-
Clone the repository into site-lisp in the emacs user directory
git clone https://github.com/xshyamx/graphviz-dot-mode \ $HOME/.emacs.d/site-lisp/graphviz-dot-mode -
Add to
load-path(add-to-list 'load-path (expand-file-name "site-lisp/graphviz-dot-mode" user-emacs-directory))
-
Load & configure
(require 'graphviz-dot-mode) (setq graphviz-dot-cmd "c:/software/graphviz/bin/dot.exe"))