diff --git a/modules/feature/spellcheck/config.el b/modules/feature/spellcheck/config.el index 72bda1ade..ff9f73360 100644 --- a/modules/feature/spellcheck/config.el +++ b/modules/feature/spellcheck/config.el @@ -26,3 +26,8 @@ (setq flyspell-popup-correct-delay 0.8) (define-key popup-menu-keymap [escape] 'keyboard-quit)) + +(@def-package flyspell-correct-helm :after flyspell-correct) + + +(@def-package flyspell-correct-ivy :after flyspell-correct) diff --git a/modules/feature/spellcheck/packages.el b/modules/feature/spellcheck/packages.el index 133772231..66ad82e4a 100644 --- a/modules/feature/spellcheck/packages.el +++ b/modules/feature/spellcheck/packages.el @@ -2,5 +2,10 @@ ;;; feature/spellcheck/packages.el (@package flyspell-correct) -(@package flyspell-correct-popup) +(cond ((@featurep :completion ivy) + (@package flyspell-correct-ivy)) + ((@featurep :completion helm) + (@package flyspell-correct-helm)) + (t + (@package flyspell-correct-popup)))