diff --git a/magit.el b/magit.el index aff697ea..2334ab25 100644 --- a/magit.el +++ b/magit.el @@ -2949,6 +2949,8 @@ in both working tree and staging area. ;;; Log edit mode +(defvar magit-log-edit-mode-hook nil "Hook run by `magit-log-edit-mode'") + (defvar magit-log-edit-buffer-name "*magit-edit-log*" "Buffer name for composing commit messages") @@ -2979,7 +2981,8 @@ Prefix arg means justify as well." (define-derived-mode magit-log-edit-mode text-mode "Magit Log Edit" (set (make-local-variable 'fill-paragraph-function) - 'magit-log-fill-paragraph)) + 'magit-log-fill-paragraph) + (run-mode-hooks 'magit-log-edit-mode-hook)) (defun magit-log-edit-cleanup () (save-excursion