docs(markdown): doctor: allow for alternate grips

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
²: 96a927dce6/grip-mode.el (L177-L179)
This commit is contained in:
pancho horrillo
2025-06-29 23:59:50 +02:00
committed by GitHub
parent 87b616e5d8
commit fdc0fa3bec

View File

@ -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")))