Only check when formatting feature is enabled.

This commit is contained in:
Mathias Lavaert 2020-10-06 17:38:10 +02:00
parent 8bd4e1f692
commit 7bff813fc3

View file

@ -8,5 +8,6 @@
(unless (executable-find "javac") (unless (executable-find "javac")
(warn! "Couldn't find the javac executable, are you sure the JDK is installed?")) (warn! "Couldn't find the javac executable, are you sure the JDK is installed?"))
(when (featurep! :editor format)
(unless (executable-find "clang-format") (unless (executable-find "clang-format")
(warn! "Couldn't find clang-format. Code formatting will not work.")) (warn! "Couldn't find clang-format. Code formatting will not work.")))