Commit 084182e8 authored by Noam Postavsky's avatar Noam Postavsky Committed by Jonas Bernoulli

git-commit-setup: use normal-mode

This ensures file and directory local variables are setup in the
standard way.
parent c8517573
......@@ -391,7 +391,11 @@ to consider doing so."
(when (file-accessible-directory-p (file-name-directory it))
(find-alternate-file it)))
(when git-commit-major-mode
(funcall git-commit-major-mode))
(let ((auto-mode-alist (list (cons (concat "\\`"
(regexp-quote buffer-file-name)
"\\'")
git-commit-major-mode))))
(normal-mode)))
(setq with-editor-show-usage nil)
(with-editor-mode 1)
(add-hook 'with-editor-finish-query-functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment