Files
emacs.d/site-start.d/107-flyspell.el
2020-06-26 15:52:18 +02:00

23 lines
536 B
EmacsLisp

;;; 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