From fdc0fa3becb9e80311cbe638d1e8b518a44bd1ee Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Sun, 29 Jun 2025 23:59:50 +0200 Subject: [PATCH] docs(markdown): doctor: allow for alternate grips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note that we are pinned to the latest release of `seagle0128/grip-mode`, which supports¹ alternate grip-like programs, namely `mdopen` and `go-grip`. Although a specific one can be configured, `grip-mode` will try and load any of the three (the two mentioned plus `grip`). I’ve added them in the same order that `grip-mode` searches for them². ¹: https://github.com/seagle0128/grip-mode?tab=readme-ov-file#alternative-markdown-preview-without-accessing-github-api ²: https://github.com/seagle0128/grip-mode/blob/96a927dce69d7607b981d7754cf8b415ebf9d6a8/grip-mode.el#L177-L179 --- modules/lang/markdown/doctor.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/lang/markdown/doctor.el b/modules/lang/markdown/doctor.el index 6a2d39231..e70cb8d82 100644 --- a/modules/lang/markdown/doctor.el +++ b/modules/lang/markdown/doctor.el @@ -18,5 +18,7 @@ cmd)))))) (when (modulep! +grip) - (unless (executable-find "grip") - (warn! "Couldn't find grip. grip-mode will not work"))) + (unless (or (executable-find "mdopen") + (executable-find "go-grip") + (executable-find "grip")) + (warn! "Couldn't find the mdopen, go-grip or grip binaries. grip-mode will not work")))