mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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"))
|
||||||
|
8
modules/checkers/spell/doctor.el
Normal file
8
modules/checkers/spell/doctor.el
Normal 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")))
|
Reference in New Issue
Block a user