checkers/spell: add doctor.el; no-op without aspell

Aspell is a hard dependency of this module, even if you use hunspell as
a backend. The spellchecker will simply bow out if aspell isn't present
on your system at startup.
This commit is contained in:
Henrik Lissner 2020-08-21 22:01:50 -04:00
parent e730cd030b
commit d393d3e0cd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 9 additions and 0 deletions

View file

@ -87,6 +87,7 @@
(use-package! spell-fu (use-package! spell-fu
:when (executable-find "aspell")
:hook (text-mode . spell-fu-mode) :hook (text-mode . spell-fu-mode)
:init :init
(setq spell-fu-directory (concat doom-etc-dir "spell-fu")) (setq spell-fu-directory (concat doom-etc-dir "spell-fu"))

View file

@ -0,0 +1,8 @@
;;; checkers/spell/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "aspell")
(warn! "Couldn't find aspell executable; spell checker will not work"))
(when (featurep! +hunspell)
(unless (executable-find "hunspell")
(warn! "Couldn't find hunspell executable; spell checker will not work")))