spacemacs/layers/+lang/graphviz
Arif Er 00f9ab19ac chore: update copyright headers to 2022
The script used to identify and update the change is added into the GitHub
workflows script directory. A workflow action can be created to trigger the
script to update the headers on the first of every new year. Possibly a task for
a consequent PR.
2022-06-03 17:32:20 +02:00
..
img Adds Graphviz layer 2016-03-24 19:46:47 -04:00
README.org Switch to the new layers generator 2019-05-15 21:08:21 +03:00
packages.el chore: update copyright headers to 2022 2022-06-03 17:32:20 +02:00

README.org

graphviz layer

/TakeV/spacemacs/media/branch/develop/layers/+lang/graphviz/img/graphviz.png

Description

This layer adds support for the open-source graph declaration system graphviz to Spacemacs.

Features:

  • Syntax highlighting for .dot files
  • Integration of a live-preview of .dot files via graphviz-dot-mode.
  • Control of the graphviz compiler directly from emacs.
  • Support for formatting .dot files automatically.

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.

To get the compilation working, you will also need the native package graphviz installed in your system.

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