summaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2023-05-22 18:26:07 +0200
committerMartin Polden <mpolden@mpolden.no>2023-05-22 18:26:07 +0200
commit4f422fb5bb4a01b57627d8609ac4540c1d4d7d7f (patch)
tree51d0c70df3264e8d06e52cffdff2e2ef536216cb /lisp
parent274f830b470d54756b0b5f4884e035d2f945c002 (diff)
flyspell: correct words with completing-read
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-flyspell.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/init-flyspell.el b/lisp/init-flyspell.el
index 77f6731..1d155aa 100644
--- a/lisp/init-flyspell.el
+++ b/lisp/init-flyspell.el
@@ -9,14 +9,16 @@
(org-mode . flyspell-mode)
(latex-mode . flyspell-mode))
- :bind (:map flyspell-mode-map
- ("C-c s" . flyspell-correct-word-before-point))
-
:config
;; prefer hunspell
(when (executable-find "hunspell")
(setq ispell-program-name "hunspell")))
+(use-package flyspell-correct
+ :ensure t
+ :bind (:map flyspell-mode-map
+ ("C-c s" . flyspell-correct-wrapper)))
+
(provide 'init-flyspell)
;;; init-flyspell.el ends here