2016-01-29 08:35:56 +00:00
|
|
|
#+TITLE: graphviz layer
|
|
|
|
#+HTML_HEAD_EXTRA: <link rel="stylesheet" type="text/css" href="../css/readtheorg.css" />
|
|
|
|
|
2016-03-25 01:54:54 +00:00
|
|
|
[[file:img/graphviz.png]]
|
2016-01-29 08:35:56 +00:00
|
|
|
|
|
|
|
* Table of Contents :TOC_4_org:noexport:
|
|
|
|
- [[Description][Description]]
|
|
|
|
- [[Install][Install]]
|
2016-03-25 01:54:54 +00:00
|
|
|
- [[Configuration][Configuration]]
|
2016-01-29 08:35:56 +00:00
|
|
|
- [[Key bindings][Key bindings]]
|
|
|
|
|
|
|
|
* Description
|
|
|
|
This contains a forked version of [[https://github.com/ppareit/graphviz-dot-mode][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
|
2016-03-25 01:54:54 +00:00
|
|
|
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.
|
2016-01-29 08:35:56 +00:00
|
|
|
|
2016-03-25 01:54:54 +00:00
|
|
|
* 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.
|
2016-01-29 08:35:56 +00:00
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
| Key Binding | Description |
|
|
|
|
|-------------+--------------------------------------|
|
2016-03-25 01:54: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 |
|