#51 Evaluate the `plantuml-java-args` defcustom at compile time
`defcustom`s are not executed at byte-compile time. Wrapping the `defcustom` in an `eval-and-compile` form does the trick.
This commit is contained in:
parent
5c57f05086
commit
da9d39c947
|
@ -9,5 +9,3 @@ before_install:
|
|||
script:
|
||||
- emacs --version
|
||||
- make test
|
||||
- mkdir "$(cask package-directory)/../testing"
|
||||
- emacs -q --batch --load test/resources/init.el
|
||||
|
|
2
Makefile
2
Makefile
|
@ -18,6 +18,6 @@ install:
|
|||
|
||||
clean:
|
||||
rm -Rf .emacs.d
|
||||
rm -Rf ${CASK_DIR}/../testing
|
||||
rm -Rf .cask
|
||||
|
||||
.PHONY: all test unit ecukes install
|
||||
|
|
|
@ -77,8 +77,9 @@
|
|||
(defcustom plantuml-java-command "java"
|
||||
"The java command used to execute PlantUML.")
|
||||
|
||||
(defcustom plantuml-java-args '("-Djava.awt.headless=true" "-jar")
|
||||
"The parameters passed to `plantuml-java-command' when executing PlantUML.")
|
||||
(eval-and-compile
|
||||
(defcustom plantuml-java-args '("-Djava.awt.headless=true" "-jar")
|
||||
"The parameters passed to `plantuml-java-command' when executing PlantUML."))
|
||||
|
||||
(defcustom plantuml-suppress-deprecation-warning t
|
||||
"To silence the deprecation warning when `puml-mode' is found upon loading.")
|
||||
|
|
Loading…
Reference in New Issue