New module, :app everywhere

This commit is contained in:
TEC 2021-02-07 20:15:27 +08:00
parent 16a495c97d
commit 74613c25e2
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C
6 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,12 @@
;;; 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 ", ")))))