summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-10-16 12:19:19 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-10-16 12:19:19 +0100
commit76b96b1dc88be642534baea32f9ba0f2603e9be3 (patch)
tree28a6f4e3bd86df8be7b64f413ab19445133f2780 /emacs
parenteb676e8cfa3cd8f68a3a430cafc41dda96f8870e (diff)
emacs: Enable Flyspell in git-commit-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index f106492..c22077f 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -159,7 +159,9 @@
:ensure t)
(use-package magit
- :init (setq git-commit-summary-max-length 50)
+ :init
+ (setq git-commit-summary-max-length 50)
+ (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell)
:bind (("C-c k" . magit-status))
:ensure t)