Make sure plantuml.jar is looked up in the correct directory

Still, XDG_DOWNLOAD_DIR is not the best candidate…
This commit is contained in:
Gergely Polonkai 2016-10-24 10:49:02 +02:00
parent 4bb49bc9d4
commit 05f5b373c4

View File

@ -617,7 +617,14 @@
:ensure t
:init
(setq plantuml-jar-path
(expand-file-name "~/Downloads/plantuml.jar"))
(expand-file-name
;; Make sure we have a download location even if XDG is not
;; working
(cond
((xdg-user-dir "DOWNLOAD")
(concat (xdg-user-dir "DOWNLOAD") "/plantuml.jar"))
(t
"~/Downloads/plantuml.jar"))))
(defvaralias 'org-plantuml-jar-path 'plantuml-jar-path)
:config
(org-babel-do-load-languages