[Emacs] Add support for mermaid diagrams

This commit is contained in:
Ivan Malison 2023-08-18 17:01:04 -06:00
parent 443f354d7b
commit 01e3767eb5

View File

@ -3210,6 +3210,11 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages '((typescript . t))))) 'org-babel-load-languages '((typescript . t)))))
(use-package ob-mermaid
:config
(org-babel-do-load-languages
'org-babel-load-languages '((mermaid . t))))
(setq org-log-into-drawer t (setq org-log-into-drawer t
org-log-reschedule t org-log-reschedule t
org-log-redeadline t org-log-redeadline t
@ -3907,6 +3912,12 @@ alphanumeric characters only."
(progn (progn
(add-hook 'markdown-mode-hook 'imalison:disable-linum-mode))) (add-hook 'markdown-mode-hook 'imalison:disable-linum-mode)))
#+END_SRC #+END_SRC
*** mermaid-mode
#+begin_src emacs-lisp
(use-package mermaid-mode
:mode (("\\.mermaid\\'" . mermaid-mode)
("\\.mmd\\'" . mermaid-mode)))
#+end_src
*** plantuml-mode *** plantuml-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package plantuml-mode (use-package plantuml-mode