107-flyspell: highlights incorrect words
* use package flyspell ispell -> aspell Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
21
site-start.d/107-flyspell.el
Normal file
21
site-start.d/107-flyspell.el
Normal 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
|
||||||
Reference in New Issue
Block a user