From 54251d877632d19d098c0cd08735c964eaaeb4ae Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 8 Apr 2018 16:28:22 -0700 Subject: [emacs] Rename some custom variables. Use '-' as a separator instead of '/' in some variable's names. --- emacs.d/modules/module-flyspell.el | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'emacs.d/modules/module-flyspell.el') 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) -- cgit 1.4.1