From 97370f2ee036a6e2064a7db8001f7411b20b5f9a Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Sat, 20 Feb 2021 04:03:46 +0900 Subject: [PATCH] Update --- emacs.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emacs.el b/emacs.el index e34ec3e..3569fbd 100644 --- a/emacs.el +++ b/emacs.el @@ -1777,11 +1777,11 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called." (when (fboundp 'gited-list) (defalias 'gited 'gited-list)) -(when (fboundp 'global-git-commit-mode) - (add-hook 'after-first-visit-hook - 'global-git-commit-mode) - (add-hook 'after-first-visit-hook - 'git-commit-setup-check-buffer)) +(when (require 'git-commit nil t) + ;; git-commit is defined badly and breaks the convention that only loading a + ;; library should not change the Emacs behavior: + ;; anyway I enable this manually here. + (global-git-commit-mode 1)) (with-eval-after-load 'git-commit (add-hook 'git-commit-setup-hook 'turn-off-auto-fill t))