Files
doomemacs/modules/lang/java/doctor.el
Mathias Lavaert 8bd4e1f692 Added warning for clang-format in doom doctor.
Code formatting in Java doesn't work without clang-format, but no
warning is shown in `doom doctor`.
2020-09-07 15:34:43 +02:00

13 lines
428 B
EmacsLisp

;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/java/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(unless (executable-find "javac")
(warn! "Couldn't find the javac executable, are you sure the JDK is installed?"))
(unless (executable-find "clang-format")
(warn! "Couldn't find clang-format. Code formatting will not work."))