From 86caa02c47a474db9fe6a9b0c1b047a757a85d6e Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 29 Apr 2024 12:25:43 -0400 Subject: [PATCH] Configure plantuml and mermaid --- emacs/.emacs.d/config/init-mermaid.el | 5 +++++ emacs/.emacs.d/config/init-plantuml.el | 4 ++-- emacs/.emacs.d/init.el | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 emacs/.emacs.d/config/init-mermaid.el diff --git a/emacs/.emacs.d/config/init-mermaid.el b/emacs/.emacs.d/config/init-mermaid.el new file mode 100644 index 0000000..e7b5527 --- /dev/null +++ b/emacs/.emacs.d/config/init-mermaid.el @@ -0,0 +1,5 @@ +;; -*- lexical-binding: t; -*- + +(use-package mermaid-mode) + +(provide 'init-mermaid) diff --git a/emacs/.emacs.d/config/init-plantuml.el b/emacs/.emacs.d/config/init-plantuml.el index a9414b3..0dd5800 100644 --- a/emacs/.emacs.d/config/init-plantuml.el +++ b/emacs/.emacs.d/config/init-plantuml.el @@ -4,7 +4,7 @@ ("\\.plantuml\\'" . plantuml-mode) ("\\.puml\\'" . plantuml-mode)) :custom - (plantuml-default-exec-mode 'jar) - (plantuml-jar-path (expand-file-name "~/plantuml/plantuml.jar"))) + (plantuml-default-exec-mode 'executable) + (plantuml-executable-path (executable-find "plantuml"))) (provide 'init-plantuml) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 641e547..5e5e007 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -120,6 +120,7 @@ (require 'init-1pass) (require 'init-wallabag) (require 'init-plantuml) +(require 'init-mermaid) (require 'handwriting) (when (string-equal system-type "darwin") (require 'init-mac))