Can't turn on plantuml-mode in Emacs

后端 未结 1 1468
生来不讨喜
生来不讨喜 2021-02-03 14:02

I am on Emacs 24.3.1. I installed the MELPA version of plantuml-mode via

M-x package-install RET plantuml-mode RET<

相关标签:
1条回答
  • 2021-02-03 14:29

    After a bit more digging I found the solution to this problem: plantuml-mode won't run unless the variable plantuml-jar-path is set to a non-nil value. Fairly obvious in hindsight, but still easy to get bit by since it isn't mentioned explicitly (at least not anywhere that I could find). For best results, the variable should point to the location of the plantuml.jar file in your file system. In my case:

    (setq plantuml-jar-path "/opt/plantuml/plantuml.jar")
    

    Hope this helps someone else at some point.

    0 讨论(0)
提交回复
热议问题