Merge pull request #2735 from dive/prefer_jar_for_plantuml

Prefer jar file for plantuml-mode if it is available
This commit is contained in:
Henrik Lissner 2020-03-27 01:56:29 -04:00 committed by GitHub
commit 28a351cda5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,8 +9,8 @@
(set-popup-rule! "^\\*PLANTUML" :size 0.4 :select nil :ttl 0) (set-popup-rule! "^\\*PLANTUML" :size 0.4 :select nil :ttl 0)
(setq plantuml-default-exec-mode (setq plantuml-default-exec-mode
(cond ((executable-find "plantuml") 'executable) (cond ((file-exists-p plantuml-jar-path) 'jar)
((file-exists-p plantuml-jar-path) 'jar) ((executable-find "plantuml") 'executable)
(plantuml-default-exec-mode)))) (plantuml-default-exec-mode))))