From 91942469b6bfca69de7868a4f500afd3a6f322e1 Mon Sep 17 00:00:00 2001 From: "Christian E. Hopps" Date: Sat, 26 Mar 2016 12:17:11 -0400 Subject: [PATCH] Enable graphviz mode in org babel blocks --- layers/+lang/graphviz/packages.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layers/+lang/graphviz/packages.el b/layers/+lang/graphviz/packages.el index e7a13b3d6..09308a77b 100644 --- a/layers/+lang/graphviz/packages.el +++ b/layers/+lang/graphviz/packages.el @@ -12,6 +12,7 @@ (defconst graphviz-packages '((graphviz-dot-mode :location (recipe :fetcher github :repo "luxbock/graphviz-dot-mode")) + org smartparens)) (defun graphviz/init-graphviz-dot-mode () @@ -47,3 +48,8 @@ ;; allow smartparens to work properly (define-key graphviz-dot-mode-map "{" nil) (define-key graphviz-dot-mode-map "}" nil)))) + +(defun graphviz/post-init-org () + (with-eval-after-load 'org + (setq org-src-lang-modes (append '(("dot" . graphviz-dot)) + (delete '("dot" . fundamental) org-src-lang-modes)))))