doomemacs/modules/lang/plantuml/config.el

20 lines
648 B
EmacsLisp
Raw Normal View History

2017-07-08 23:05:23 +02:00
;;; lang/plantuml/config.el -*- lexical-binding: t; -*-
(def-package! plantuml-mode
:mode "\\.p\\(lant\\)?uml$"
2018-02-14 07:40:05 -05:00
:init
2017-07-08 23:05:23 +02:00
(setq plantuml-jar-path (concat doom-etc-dir "plantuml.jar"))
2018-02-14 07:40:05 -05:00
:config
(set! :popup "^\\*PLANTUML" '((size . 0.4)) '((select) (transient . 0)))
2017-07-08 23:05:23 +02:00
(unless (executable-find "java")
2018-02-14 07:40:05 -05:00
(warn! "Couldn't find java. Disabling plantuml preview."))
2017-07-08 23:05:23 +02:00
(unless (file-exists-p plantuml-jar-path)
2018-02-14 07:40:05 -05:00
(warn! "Couldn't find plantuml.jar. Install it witInstall it with-x +plantuml/install.")))
2017-07-08 23:05:23 +02:00
(def-package! flycheck-plantuml
:when (featurep! :feature syntax-checker)
:after plantuml-mode
:config (flycheck-plantuml-setup))