summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-text.el21
1 files changed, 11 insertions, 10 deletions
diff --git a/emacs.d/custom/fcuny-text.el b/emacs.d/custom/fcuny-text.el
index 73f93a4..45198a1 100644
--- a/emacs.d/custom/fcuny-text.el
+++ b/emacs.d/custom/fcuny-text.el
@@ -1,18 +1,19 @@
 (use-package flyspell
+  :ensure t
+  :if (executable-find "aspell")
   :hook ((text-mode . flyspell-mode)
          (prog-mode . flyspell-prog-mode))
+  :custom
+  (ispell-dictionary "en_US")
+  (ispell-program-name "aspell")
   :config
-  (setq ispell-dictionary "en_US")
-
-  (when (executable-find "aspell")
-    (setq ispell-program-name "aspell"))
-
-  (use-package flyspell-correct
-    :after (flyspell)
-    :commands (flyspell-correct-word-generic
-               flyspell-correct-previous-word-generic)
+  (use-package flyspell-correct-ivy
+    :after flyspell
+    :ensure t
     :bind (:map flyspell-mode-map
-                ("C-;" . flyspell-correct-previous-word-generic))))
+                ("C-M-:" . flyspell-correct-at-point))
+    :custom
+    (flyspell-correct-interface #'flyspell-correct-ivy)))
 
 (use-package markdown-mode
   :ensure t