From bd12a71a92f10113d46e2df2885d61f934c9d973 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 27 Nov 2021 19:30:09 +0100 Subject: [PATCH] [Emacs] Better graphviz configuration --- org/config/emacs.org | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/org/config/emacs.org b/org/config/emacs.org index dd98441..b72c75d 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -4903,6 +4903,7 @@ visual graphs and networks. (use-package graphviz-dot-mode :defer t :straight (:build t) + :after ob :mode (("\\.diag\\'" . graphviz-dot-mode) ("\\.blockdiag\\'" . graphviz-dot-mode) ("\\.nwdiag\\'" . graphviz-dot-mode) @@ -4911,12 +4912,14 @@ visual graphs and networks. ("\\.gv\\'" . graphviz-dot-mode)) :init (setq graphviz-dot-indent-width tab-width) - (after! org-src - ;; (defalias 'org-babel-execute:graphviz-dot #'org-babel-execute:dot) - (add-to-list 'org-babel-load-languages '(dot . t)) - (setq org-src-lang-modes - (append '(("dot" . graphviz-dot)) - (delete '("dot" . fundamental) org-src-lang-modes)))) + (after! ob + (defalias 'org-babel-execute:graphviz-dot #'org-babel-execute:dot) + (add-to-list 'org-babel-load-languages '(dot . t)) + (require 'ob-dot) + (setq org-src-lang-modes + (append '(("dot" . graphviz-dot)) + (delete '("dot" . fundamental) org-src-lang-modes)))) + :general (phundrak/major-leader-key :keymaps 'graphviz-dot-mode-map