2019-10-25 22:13:01 +13:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/org/doctor.el
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! +gnuplot)
|
2019-10-25 22:13:01 +13:00
|
|
|
(unless (executable-find "gnuplot")
|
|
|
|
(warn! "Couldn't find gnuplot. org-plot/gnuplot will not work")))
|
2020-05-08 14:06:54 +03:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! +roam)
|
2021-12-22 16:23:51 +02:00
|
|
|
(warn! "You are using org-roam-v1. This version is unmaintained Doom support for it will eventually be removed.\
|
|
|
|
Migrate your notes to org-roam-v2 and switch to the +roam2 flag (see the module readme).")
|
2021-07-23 00:40:49 +03:00
|
|
|
(unless (executable-find "sqlite3")
|
|
|
|
(warn! "Couldn't find the sqlite3 executable. org-roam will not work.")))
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (or (modulep! +roam)
|
|
|
|
(modulep! +roam2))
|
2020-05-08 14:06:54 +03:00
|
|
|
(unless (executable-find "dot")
|
2020-12-23 17:34:04 +01:00
|
|
|
(warn! "Couldn't find the dot executable (from graphviz). org-roam will not be able to generate graph visualizations.")))
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! +dragndrop)
|
2023-12-05 17:05:13 -05:00
|
|
|
(when (featurep :system 'macos)
|
2020-12-23 17:34:04 +01:00
|
|
|
(unless (executable-find "pngpaste")
|
|
|
|
(warn! "Couldn't find the pngpaste executable. org-download-clipboard will not work.")))
|
2023-12-05 17:05:13 -05:00
|
|
|
(when (featurep :system 'linux)
|
2020-12-23 17:34:04 +01:00
|
|
|
(unless (or (executable-find "maim") (executable-find "scrot") (executable-find "gnome-screenshot"))
|
|
|
|
(warn! "Couldn't find the maim, scrot or gnome-screenshot executable. org-download-clipboard will not work."))
|
|
|
|
(if (string= "wayland" (getenv "XDG_SESSION_TYPE"))
|
|
|
|
(unless (executable-find "wl-paste")
|
|
|
|
(warn! "Couldn't find the wl-paste executable (from wl-clipboard). org-download-clipboard will not work."))
|
|
|
|
(unless (executable-find "xclip")
|
|
|
|
(warn! "Couldn't find the xclip executable. org-download-clipboard will not work."))))
|
2023-12-05 17:05:13 -05:00
|
|
|
(when (featurep :system 'windows)
|
2020-12-23 17:34:04 +01:00
|
|
|
(unless (executable-find "convert")
|
|
|
|
(warn! "Couldn't find the convert program (from ImageMagick). org-download-clipboard will not work."))))
|