From 38165bdff8cab444aebce9cc6c35901085d35ced Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 22 Sep 2018 15:45:05 -0700 Subject: [emacs] Update configuration for flyspell. --- configs/rcs/emacs.d/init.el | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'configs/rcs/emacs.d/init.el') diff --git a/configs/rcs/emacs.d/init.el b/configs/rcs/emacs.d/init.el index e4cba30..d0dc736 100644 --- a/configs/rcs/emacs.d/init.el +++ b/configs/rcs/emacs.d/init.el @@ -191,20 +191,21 @@ (prog-mode . flyspell-prog-mode)) :config (setq ispell-dictionary "en_US") + (when (executable-find "aspell") (setq ispell-program-name "aspell" - ispell-list-command "--list"))) - -(use-package flyspell-correct - :after (flyspell) - :commands (flyspell-correct-word-generic - flyspell-correct-previous-word-generic) - :bind (:map flyspell-mode-map - ("C-;" . flyspell-correct-previous-word-generic))) - -(use-package flyspell-correct-ivy - :commands (flyspell-correct-ivy) - :init (setq flyspell-correct-interface #'flyspell-correct-ivy)) + ispell-list-command "--list")) + + (use-package flyspell-correct + :after (flyspell) + :commands (flyspell-correct-word-generic + flyspell-correct-previous-word-generic) + :bind (:map flyspell-mode-map + ("C-;" . flyspell-correct-previous-word-generic))) + + (use-package flyspell-correct-ivy + :commands (flyspell-correct-ivy) + :init (setq flyspell-correct-interface #'flyspell-correct-ivy))) (use-package whitespace :custom -- cgit 1.4.1