diff --git a/init.example.el b/init.example.el index 8ba83b1e0..5ef03488d 100644 --- a/init.example.el +++ b/init.example.el @@ -107,7 +107,7 @@ ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;ess ; emacs speaks statistics - ;; fsharp ; ML stands for Microsoft's Language + ;;fsharp ; ML stands for Microsoft's Language ;;go ; the hipster dialect ;;(haskell +intero) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python diff --git a/modules/lang/fsharp/doctor.el b/modules/lang/fsharp/doctor.el index c949c5b74..86c633457 100644 --- a/modules/lang/fsharp/doctor.el +++ b/modules/lang/fsharp/doctor.el @@ -1,4 +1,5 @@ ;;; lang/fsharp/doctor.el -*- lexical-binding: t; -*- -(unless (-any #'fsharp-mode--executable-find '("fsharpc" "fsc")) - (warn! "Cannot find the F# compiler. Most features will not work.")) +(when (require 'fsharp-mode nil t) + (unless (cl-some #'fsharp-mode--executable-find '("fsharpc" "fsc")) + (warn! "Cannot find the F# compiler. Most features will not work.")))