blob: 2ac7a3e4f4a2ca521e1ff6274d185d60828287d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
(use-package flyspell
;; load flyspell automatically for these modes
:hook ((git-commit-mode . flyspell-mode)
(gfm-mode . flyspell-mode)
(org-mode . flyspell-mode)
(latex-mode . flyspell-mode))
:bind (:map flyspell-mode-map
("C-c s" . flyspell-correct-word-before-point))
:config
;; prefer hunspell
(when (executable-find "hunspell")
(setq ispell-program-name "hunspell")))
(provide 'init-flyspell)
|