doomemacs/modules/app/everywhere/doctor.el
2021-02-08 09:22:25 +08:00

12 lines
396 B
EmacsLisp

;;; app/everywhere/doctor.el -*- lexical-binding: t; -*-
(when IS-WINDOWS
(error! "emacs-everywhere package does not support windows."))
(when IS-LINUX
(let (unmet-deps)
(dolist (dep '("xclip" "xdotool" "xprop" "xwininfo"))
(unless (executable-find dep)
(push dep unmet-deps)))
(when unmet-deps
(error! "Unmet dependencies: %s" (string-join unmet-deps ", ")))))