diff --git a/modules/lang/python/doctor.el b/modules/lang/python/doctor.el new file mode 100644 index 000000000..89aeb9e68 --- /dev/null +++ b/modules/lang/python/doctor.el @@ -0,0 +1,8 @@ +;;; lang/python/doctor.el -*- lexical-binding: t; -*- + +(unless (executable-find "python") + (warn! "Python isn't installed.")) + +(when (executable-find "pyenv") + (unless (split-string (shell-command-to-string "pyenv versions --bare") "\n" t) + (warn! "No versions of python are available via pyenv, did you forget to install one?"))) diff --git a/modules/lang/ruby/doctor.el b/modules/lang/ruby/doctor.el new file mode 100644 index 000000000..7050b4f28 --- /dev/null +++ b/modules/lang/ruby/doctor.el @@ -0,0 +1,8 @@ +;;; lang/ruby/doctor.el -*- lexical-binding: t; -*- + +(unless (executable-find "ruby") + (warn! "Ruby isn't installed.")) + +(when (executable-find "rbenv") + (unless (split-string (shell-command-to-string "rbenv versions --bare") "\n" t) + (warn! "No versions of ruby are available via rbenv, did you forget to install one?")))