diff --git a/site-start.d/107-flyspell.el b/site-start.d/107-flyspell.el new file mode 100644 index 0000000..267a545 --- /dev/null +++ b/site-start.d/107-flyspell.el @@ -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