From 01e3767eb58b9e54d43282a53580bb2a588b6bfd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 18 Aug 2023 17:01:04 -0600 Subject: [PATCH] [Emacs] Add support for mermaid diagrams --- dotfiles/emacs.d/README.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index bc02dff1..0d89da80 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3210,6 +3210,11 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 (org-babel-do-load-languages '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 org-log-reschedule t org-log-redeadline t @@ -3907,6 +3912,12 @@ alphanumeric characters only." (progn (add-hook 'markdown-mode-hook 'imalison:disable-linum-mode))) #+END_SRC +*** mermaid-mode +#+begin_src emacs-lisp +(use-package mermaid-mode + :mode (("\\.mermaid\\'" . mermaid-mode) + ("\\.mmd\\'" . mermaid-mode))) +#+end_src *** plantuml-mode #+BEGIN_SRC emacs-lisp (use-package plantuml-mode