graphviz: use a use-package hook for org babel config

This commit is contained in:
syl20bnr 2016-04-29 22:47:03 -04:00
parent 368c1bef9a
commit 354ca0b781

View file

@ -50,6 +50,11 @@
(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)))))
(spacemacs|use-package-add-hook org
:post-config
(progn
(add-to-list 'org-babel-load-languages '(dot . t))
;; replace fundamental mode by graphiz one
(setq org-src-lang-modes
(append '(("dot" . graphviz-dot))
(delete '("dot" . fundamental) org-src-lang-modes))))))