summary refs log tree commit diff
path: root/emacs.d/modules/module-flyspell.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-flyspell.el23
1 files changed, 13 insertions, 10 deletions
diff --git a/emacs.d/modules/module-flyspell.el b/emacs.d/modules/module-flyspell.el
index ade45ee..e95ab1e 100644
--- a/emacs.d/modules/module-flyspell.el
+++ b/emacs.d/modules/module-flyspell.el
@@ -1,17 +1,20 @@
 (require 'config-package)
 
-;; check the spelling
+(use-package ispell
+  :config
+  (setq ispell-program-name "aspell"
+        ispell-list-command "--list"))
+
+(use-package flyspell-correct-ivy
+  :bind
+  (:map flyspell-mode-map
+        ("C-;" . flyspell-correct-previous-word-generic)))
+
 (use-package flyspell
+  :commands (spell-checking/change-dictionary)
   :init
-  (use-package ispell
-    :ensure t
-    :config
-    (setq ispell-program-name "aspell"
-          ispell-list-command "--list"))
-  (use-package flyspell-popup
-    :ensure t
-    :bind ("C-:" . flyspell-popup-correct))
   :config
-  (add-hook 'text-mode-hook 'flyspell-mode))
+  (add-hook 'text-mode-hook 'flyspell-mode)
+  (add-hook 'prog-mode-hook 'flyspell-prog-mode))
 
 (provide 'module-flyspell)