spacemacs/layers/+lang/graphviz
2016-04-05 12:52:54 +02:00
..
img Adds Graphviz layer 2016-03-24 19:46:47 -04:00
packages.el graphviz: update key bindings and smartparens support 2016-03-24 21:54:54 -04:00
README.org Correct more <SPC> to SPC 2016-04-05 12:52:54 +02:00

graphviz layer

/TakeV/spacemacs/media/commit/23ce5aee8444c20d6c12d50e69459572091e7f97/layers/+lang/graphviz/img/graphviz.png

Description

This contains a forked version of graphviz-dot-mode that enables a live-reload type work flow for editing `.dot` files. When live-preview is enabled, saving the file will automatically trigger a compilation and reload of the image buffer associated with the file.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add graphviz to the existing dotspacemacs-configuration-layers list in this file.

Configuration

If the live preview is not always updating the rendered image properly, you can try to adjust the value of graphviz-dot-revert-delay higher to give the compiler more time to finish generating the file before reverting the buffer.

Key bindings

Key Binding Description
SPC m , Preview file
SPC m = Indent graph
SPC m t Toggle live-preview
SPC m c Set compile command and compile file