Skip to content

Commit

Permalink
feat(mermaid): initial support
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Mar 23, 2023
1 parent 56c37a8 commit 5718db8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/me-data.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@
(plantuml-enable-debug)))
:wk "Toggle debug")))

(use-package mermaid-mode
:straight t
:config
(+map-local! :keymaps 'mermaid-mode-map
"c" 'mermaid-compile
"f" 'mermaid-compile-file
"b" 'mermaid-compile-buffer
"r" 'mermaid-compile-region
"b" 'mermaid-open-browser
"d" 'mermaid-open-doc))

(use-package ob-mermaid
:straight (:host github :repo "arnm/ob-mermaid")
:after ob
:demand t
:config
(org-babel-do-load-languages
'org-babel-load-languages
(append org-babel-load-languages '((mermaid . t)))))

(use-package d2-mode
:straight t
:mode "\\.d2\\'"
Expand Down

0 comments on commit 5718db8

Please sign in to comment.