spacemacs/layers/+lang/graphviz/README.org
luxbock 87db0174a2 Adds Graphviz layer
- Uses a forked version of graphviz-dot-mode.el with a local install.
  Upstream PR: ppareit/graphviz-dot-mode#18
2016-03-24 19:46:47 -04:00

1.4 KiB

graphviz layer

logo

/TakeV/spacemacs/media/commit/87db0174a2a15c619e10c9262dfd205a0b45339f/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.

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.

Install

To use this contribution add it to your ~/.spacemacs

  (setq-default dotspacemacs-configuration-layers '(graphviz))

Key bindings

Key Binding Description
<SPC> t Toggle live-preview
<SPC> c Set compile command and compile file
<SPC> p Preview file
<SPC> , Preview file