featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
23 lines
770 B
EmacsLisp
23 lines
770 B
EmacsLisp
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
;;; lang/fortran/doctor.el
|
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
(modulep! :tools lsp))
|
|
"This module requires (:tools lsp)")
|
|
|
|
(when (and (modulep! +intel)
|
|
(not (executable-find "ifort")))
|
|
(warn! "Couldn't find Intel ifort - compilation will not work."))
|
|
|
|
(when (and (not (modulep! +intel))
|
|
(not (executable-find "gfortran")))
|
|
(warn! "Couldn't find gfortran - compilation will not work."))
|
|
|
|
(unless (executable-find "fpm")
|
|
(warn! "Couldn't find fpm - project building/testing will not work."))
|
|
|
|
(when (modulep! +lsp)
|
|
(unless (executable-find "fortls")
|
|
(warn! "Couldn't find fortls."))
|
|
(unless (executable-find "fprettify")
|
|
(warn! "Couldn't find fprettify.")))
|