Add lang/plantuml
This commit is contained in:
parent
be4eeac705
commit
9a74124ede
5 changed files with 47 additions and 0 deletions
18
modules/lang/plantuml/config.el
Normal file
18
modules/lang/plantuml/config.el
Normal file
|
@ -0,0 +1,18 @@
|
|||
;;; lang/plantuml/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! plantuml-mode
|
||||
:mode "\\.p\\(lant\\)?uml$"
|
||||
:config
|
||||
(setq plantuml-jar-path (concat doom-etc-dir "plantuml.jar"))
|
||||
(set! :popup "*PLANTUML Preview*" :size 25 :noselect t :autokill t)
|
||||
|
||||
(unless (executable-find "java")
|
||||
(warn "plantuml-mode: can't find java, preview disabled."))
|
||||
(unless (file-exists-p plantuml-jar-path)
|
||||
(warn "plantuml-mode: can't find plantuml.jar; run M-x +plantuml/install.")))
|
||||
|
||||
|
||||
(def-package! flycheck-plantuml
|
||||
:when (featurep! :feature syntax-checker)
|
||||
:after plantuml-mode
|
||||
:config (flycheck-plantuml-setup))
|
Loading…
Add table
Add a link
Reference in a new issue