From 39e4f1ab7c9166caec12c987430403b2478001d2 Mon Sep 17 00:00:00 2001 From: Boris Buliga Date: Fri, 5 Oct 2018 09:35:35 +0300 Subject: [PATCH] update to flyspell-correct v0.5 `flyspell-correct-word-generic` and `flyspell-correct-previous-word-generic` are deprecated and replaced by `flyspell-correct-at-point` and `flyspell-correct-wrapper` respectively. `flyspell-correct-wrapper` has a so-called 'rapid' mode, where you can correct multiple words in a single run. --- layers/+checkers/spell-checking/README.org | 15 ++++++++------- layers/+checkers/spell-checking/packages.el | 6 +++--- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/layers/+checkers/spell-checking/README.org b/layers/+checkers/spell-checking/README.org index 604f10cd6..6822b9191 100644 --- a/layers/+checkers/spell-checking/README.org +++ b/layers/+checkers/spell-checking/README.org @@ -120,13 +120,14 @@ set the layer variable =enable-flyspell-auto-completion= to t: * Key Bindings -| Key Binding | Description | -|-------------+--------------------------| -| ~SPC S b~ | flyspell whole buffer | -| ~SPC S c~ | flyspell correct | -| ~SPC S d~ | change dictionary | -| ~SPC S n~ | flyspell goto next error | -| ~SPC t S~ | toggle flyspell | +| Key Binding | Description | +|-----------------+----------------------------------------| +| ~SPC S b~ | flyspell whole buffer | +| ~SPC S c~ | flyspell correct | +| ~SPC u SPC S c~ | flyspell correct all errors one by one | +| ~SPC S d~ | change dictionary | +| ~SPC S n~ | flyspell goto next error | +| ~SPC t S~ | toggle flyspell | ** Spell Checking Transient-state diff --git a/layers/+checkers/spell-checking/packages.el b/layers/+checkers/spell-checking/packages.el index da2809725..9bbe292d6 100644 --- a/layers/+checkers/spell-checking/packages.el +++ b/layers/+checkers/spell-checking/packages.el @@ -90,10 +90,10 @@ Spell Commands^^ Other (defun spell-checking/init-flyspell-correct () (use-package flyspell-correct - :commands (flyspell-correct-word-generic - flyspell-correct-previous-word-generic) + :commands (flyspell-correct-at-point + flyspell-correct-wrapper) :init - (spacemacs/set-leader-keys "Sc" 'flyspell-correct-previous-word-generic))) + (spacemacs/set-leader-keys "Sc" #'flyspell-correct-wrapper))) (defun spell-checking/init-flyspell-correct-ivy () (use-package flyspell-correct-ivy