summaryrefslogtreecommitdiffstats
path: root/lisp/init-flyspell.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-flyspell.el')
-rw-r--r--lisp/init-flyspell.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/init-flyspell.el b/lisp/init-flyspell.el
index c6468a1..c72edcd 100644
--- a/lisp/init-flyspell.el
+++ b/lisp/init-flyspell.el
@@ -2,6 +2,10 @@
;; package is bundled with emacs
:ensure nil
+ ;; load flyspell automatically for these modes
+ :hook ((git-commit-mode . flyspell-mode)
+ (gfm-mode . flyspell-mode))
+
:bind (:map flyspell-mode-map
("C-c s" . flyspell-correct-word-before-point)))