Enable graphviz mode in org babel blocks
This commit is contained in:
parent
9f48b951db
commit
91942469b6
1 changed files with 6 additions and 0 deletions
|
@ -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)))))
|
||||
|
|
Reference in a new issue