blob: ce64dd21d9b90bd35e9a34ffebe21a6c055a13ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
;;; init-flyspell.el --- configure flyspell
;;; Commentary:
;;; Code:
(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)
;;; init-flyspell.el ends here
|