fix(spell): fail gracefully on missing ispell-program-name

Instead of stopping things dead with a hard error, emit a more readable
warning, instead.
This commit is contained in:
Henrik Lissner 2024-09-10 21:52:51 -04:00
parent fcf8b0f8a1
commit 40d67ab573
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -62,7 +62,9 @@
(_ (doom-log "Spell checker not found. Either install `aspell', `hunspell' or `enchant'")))
(ispell-check-version))
(if (executable-find ispell-program-name)
(ispell-check-version)
(warn "Can't find %s in your $PATH" ispell-program-name)))
;;