summary refs log tree commit diff
path: root/emacs.d/modules/module-flyspell.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:28:22 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-08 16:28:22 -0700
commit54251d877632d19d098c0cd08735c964eaaeb4ae (patch)
treed18bd727529288ea1b474c62836c69986e82b2f4 /emacs.d/modules/module-flyspell.el
parent[tmux] Add tmux again. (diff)
downloademacs.d-54251d877632d19d098c0cd08735c964eaaeb4ae.tar.gz
[emacs] Rename some custom variables.
Use '-' as a separator instead of '/' in some variable's names.
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)