Skip to content

Commit

Permalink
tweak(plantuml): prefer executable, correctly use the JAR file
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 10, 2024
1 parent 1c5a603 commit 7df0234
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/on-demand/me-plantuml.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@
(list keyword)
(all-completions sym-at-pt plantuml-kwdList)))))))

;; Automatically download the latest version of PlantUML
(setopt plantuml-jar-path (+github-download-release "plantuml/plantuml" "plantuml-{{ver}}.jar"))
(if (executable-find "plantuml")
;; Use the executable
(setopt plantuml-default-exec-mode 'executable)
;; Automatically download the latest version of PlantUML
(setopt plantuml-default-exec-mode 'jar
plantuml-jar-path (+github-download-release "plantuml/plantuml" "plantuml-{{ver}}.jar")))

;; Add support for `capf'
(defun +plantuml-mode-setup ()
Expand Down

0 comments on commit 7df0234

Please sign in to comment.