From: Eshel Yaron <me@eshelyaron.com>
Date: Tue, 22 Aug 2023 07:09:19 +0000 (+0200)
Subject: Warn if any important executables are missing
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=08f660f19672f73b31f9851939dab5612edcc198;p=dotfiles.git

Warn if any important executables are missing
---

diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 65747b3..db4aee8 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -23,6 +23,36 @@
 (pcase system-type
   ('darwin (setq default-frame-alist '((fullscreen . fullboth)))))
 
+;;; Check for external programs
+
+(dolist (program '("autoconf"
+                   "automake"
+                   "aws"
+                   "bash"
+                   "cmake"
+                   "gcc"
+                   "git"
+                   "gpg"
+                   "go"
+                   "gopls"
+                   "gtar"
+                   "convert"
+                   "ispell"
+                   "jq"
+                   "mutool"
+                   "ninja"
+                   "psql"
+                   "rg"
+                   "stow"
+                   "makeinfo"
+                   "tree-sitter"
+                   "pandoc"
+                   "mpv"))
+  (unless (executable-find program)
+    (display-warning 'programming
+                     (format "Missing external program \"%s\"" program)
+                     :error)))
+
 ;;; Set up Elpaca
 
 (defvar elpaca-installer-version 0.5)