]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Warn if any important executables are missing
authorEshel Yaron <me@eshelyaron.com>
Tue, 22 Aug 2023 07:09:19 +0000 (09:09 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Aug 2023 07:09:19 +0000 (09:09 +0200)
.emacs.d/init.el

index 65747b3b148c02f71def67b51960b2ee043a4a80..db4aee8487015644ad269f362bc43b3737013ce2 100644 (file)
 (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)