Skip to content

xshyamx/graphviz-dot-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Grapvhiz Dot Mode

Major mode for Graphviz files.

Supports

  • Xref navigation of node definitions & references within the same file
  • Generating png preview files using the dot executable

Adds the following keybindings

Keybinding Feature
C-c C-c Generate preview file
C-c C-o Generate preview file and open it
C-c ! Inserts the bootstrap template
C-c i r Inserts a record
C-c i c Inserts a cylinder
C-c i n Inserts a node

Installation

Pre-requisites

  1. Install the latest Grapvhiz executable package with the dot executable

For Emacs

  1. Clone the repository into site-lisp in the emacs user directory

    git clone https://github.com/xshyamx/graphviz-dot-mode \
        $HOME/.emacs.d/site-lisp/graphviz-dot-mode
  2. Add to load-path

    (add-to-list
    	'load-path
    	(expand-file-name "site-lisp/graphviz-dot-mode" user-emacs-directory))
  3. Load & configure

    (require 'graphviz-dot-mode)
    (setq graphviz-dot-cmd
    	   "c:/software/graphviz/bin/dot.exe"))

About

Simplified mode for handling graphviz dot files in emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published