diff options
author | Franck Cuny <fcuny@twitter.com> | 2018-09-22 15:45:05 -0700 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2018-09-22 15:45:05 -0700 |
commit | 38165bdff8cab444aebce9cc6c35901085d35ced (patch) | |
tree | 9330df90d00d0dcb6c2aaa8488965c8be368df78 /configs | |
parent | [Emacs] Fix configuration for recentf. (diff) | |
download | emacs.d-38165bdff8cab444aebce9cc6c35901085d35ced.tar.gz |
[emacs] Update configuration for flyspell.
Diffstat (limited to 'configs')
-rw-r--r-- | configs/rcs/emacs.d/init.el | 25 |
1 files changed, 13 insertions, 12 deletions
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 |