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

44 lines
1.6 KiB
Org Mode
Raw Normal View History

#+TITLE: graphviz layer
#+TAGS: dsl|layer|markup|programming
2019-05-05 17:26:40 +00:00
[[file:img/graphviz.png]]
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#features][Features:]]
2017-05-22 14:16:12 +00:00
- [[#install][Install]]
- [[#configuration][Configuration]]
- [[#key-bindings][Key bindings]]
* 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 [[https://github.com/ppareit/graphviz-dot-mode][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 [[http://graphviz.org/][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 |
|-------------+--------------------------------------|
2016-04-05 10:52:54 +00:00
| ~SPC m ,~ | Preview file |
| ~SPC m =~ | Indent graph |
| ~SPC m t~ | Toggle live-preview |
| ~SPC m c~ | Set compile command and compile file |