update flyspell-correct after breaking changes

This commit is contained in:
d12frosted 2016-06-06 11:41:17 +03:00 committed by syl20bnr
parent 56844ce5da
commit 583415cdf8

View file

@ -14,8 +14,11 @@
auto-dictionary
flyspell
flyspell-correct
(flyspell-popup :toggle enable-flyspell-auto-completion)
))
(flyspell-correct-ivy :toggle (configuration-layer/layer-usedp 'ivy))
(flyspell-correct-helm :toggle (configuration-layer/layer-usedp 'helm))
(flyspell-correct-popup :toggle (and (not (configuration-layer/layer-usedp 'ivy))
(not (configuration-layer/layer-usedp 'helm))))
(flyspell-popup :toggle enable-flyspell-auto-completion)))
(defun spell-checking/init-auto-dictionary ()
(use-package auto-dictionary
@ -66,14 +69,19 @@
(defun spell-checking/init-flyspell-correct ()
(use-package flyspell-correct
:commands (flyspell-correct-word-generic)
:commands (flyspell-correct-word-generic
flyspell-correct-previous-word-generic)
:init
(when (configuration-layer/package-usedp 'ivy)
(setq flyspell-correct-interface 'flyspell-correct-ivy))
(when (configuration-layer/package-usedp 'helm)
(setq flyspell-correct-interface 'flyspell-correct-helm))
(when (bound-and-true-p flyspell-correct-interface)
(spacemacs/set-leader-keys "Sc" 'flyspell-correct-word-generic))))
(spacemacs/set-leader-keys "Sc" 'flyspell-correct-previous-word-generic)))
(defun spell-checking/init-flyspell-correct-ivy ()
(use-package flyspell-correct-ivy))
(defun spell-checking/init-flyspell-correct-helm ()
(use-package flyspell-correct-helm))
(defun spell-checking/init-flyspell-correct-popup ()
(use-package flyspell-correct-popup))
(defun spell-checking/init-flyspell-popup ()
(use-package flyspell-popup