This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/graphviz/README.org
syl20bnr 130cd48d03 graphviz: update key bindings and smartparens support
Change the key bindings:
- Remove SPC m p
- Better support for double leader keys for preview (,, and M-m M-m)
- Graph indentation on SPC m =

Add support for smartparens when it is used for {} pair.

Update the doc.
2016-03-24 21:54:54 -04:00

1.4 KiB

graphviz layer

/TakeV/spacemacs/media/commit/c4d9ca8fba309424c72ee92b83b2164bcd6d7832/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