107-flyspell: highlights incorrect words

* use package flyspell
  ispell -> aspell

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-06-24 01:40:40 +02:00
parent b2fc283fdd
commit 670e60949a

View File

@@ -0,0 +1,21 @@
;;; 107-flyspell.el --- on-the-fly spell checking
;;; Commentary:
Flyspell highlights incorrect words as soon as they are completed
or as soon as the TextCursor hits a new word.
;;; Code:
(use-package flyspell
:bind (("C-`" . ispell-word)
("C-~" . ispell-buffer))
:init
(dolist (hook '(text-mode-hook org-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
:config
(setq ispell-program-name "aspell"
ispell-list-command "--list"))
(provide '107-flyspell)
;; End:
;;; 107-flyspell.el ends here