Requested changes -- move defvar to preface

We can now remove the redundant hack.
This commit is contained in:
Ian Wahbe 2020-11-13 20:51:54 +01:00
parent ea16bb66c3
commit a31dced7bc
2 changed files with 6 additions and 13 deletions

View file

@ -70,21 +70,20 @@
(eval-if! (not (featurep! +flyspell))
(defun +spell-defun-correct-interface ()
(use-package! spell-fu
:when (executable-find "aspell")
:hook (text-mode . spell-fu-mode)
:general ([remap ispell-word] #'+spell/correct)
:preface
(defvar +spell-correct-interface
(cond ((featurep! :completion ivy)
#'+spell-correct-ivy-fn)
((featurep! :completion helm)
#'+spell-correct-helm-fn)
(#'+spell-correct-generic-fn))
"Function to use to display corrections."))
"Function to use to display corrections.")
(use-package! spell-fu
:when (executable-find "aspell")
:hook (text-mode . spell-fu-mode)
:general ([remap ispell-word] #'+spell/correct)
:init
(+spell-defun-correct-interface)
(defvar +spell-excluded-faces-alist
'((markdown-mode
. (markdown-code-face