;;; dot-settings.el --- dot settings  -*- lexical-binding: t -*-

;;; Commentary:
;; https://orgmode.org/worg//org-contrib/babel/languages/ob-doc-dot.html

;;; Code:
(use-package graphviz-dot-mode
  :after (org)
  :commands graphviz-dot-mode
  :mode ("\\.gv\\'" "\\.dot\\'")
  :init
  (setq org-src-lang-modes
        (add-to-list 'org-src-lang-modes '("dot" . graphviz-dot)))
  :config
  (setq graphviz-dot-indent-width 2)
  (setq graphviz-dot-preview-extension "svg")
  (setq graphviz-dot-view-command "open %s"))

(provide 'dot-settings)
;;; dot-settings.el ends here
