mirror of
https://github.com/doomemacs/doomemacs.git
synced 2026-01-20 11:31:01 -08:00
clojure-ts-mode requires 30.1+, since it calls derived-mode-add-parents (wasn't introduced until 30). This ensures the package isn't loaded (or installed) if the user is on 29 or older.
19 lines
683 B
EmacsLisp
19 lines
683 B
EmacsLisp
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
;;; lang/clojure/doctor.el
|
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
(modulep! :tools tree-sitter))
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
(when (and (modulep! +tree-sitter)
|
|
(< emacs-major-version 30))
|
|
(error! "Tree-sitter support in Clojure requires 30.1 or newer"))
|
|
|
|
(when (and (modulep! :checkers syntax)
|
|
(modulep! -lsp))
|
|
(unless (executable-find "clj-kondo")
|
|
(warn! "Couldn't find clj-kondo. flycheck-clj-kondo will not work.")))
|
|
|
|
(when (modulep! :editor format)
|
|
(unless (executable-find "cljfmt")
|
|
(warn! "Couldn't find cljfmt. Formatting will be disabled.")))
|