diff options
-rw-r--r-- | lisp/init-git.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el index fd317cf..e54158c 100644 --- a/lisp/init-git.el +++ b/lisp/init-git.el @@ -7,6 +7,16 @@ ;; use flyspell when writing commit messages (use-package git-commit + :after markdown-mode + + :init + ;; use gfm-mode in pull request buffers + (setq git-commit-major-mode + (lambda () + (if (equal (buffer-name) "PULLREQ_EDITMSG") + (funcall 'gfm-mode) + (funcall 'text-mode)))) + :config (add-hook 'git-commit-mode-hook (lambda () |