doomemacs/modules/lang/fortran/doctor.el
2022-04-16 02:48:24 +02:00

23 lines
775 B
EmacsLisp

;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/fortran/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(when (and (featurep! +intel)
(not (executable-find "ifort")))
(warn! "Couldn't find Intel ifort - compilation will not work."))
(when (and (not (featurep! +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 (featurep! +lsp)
(unless (executable-find "fortls")
(warn! "Couldn't find fortls."))
(unless (executable-find "fprettify")
(warn! "Couldn't find fprettify.")))