Add a hook for magit-log-edit-mode

This commit is contained in:
Ævar Arnfjörð Bjarmason 2010-05-17 07:19:00 +08:00 committed by Phil Jakckson
parent 50ac04d222
commit 35dfceb3b5

View file

@ -2949,6 +2949,8 @@ in both working tree and staging area.
;;; Log edit mode ;;; 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*" (defvar magit-log-edit-buffer-name "*magit-edit-log*"
"Buffer name for composing commit messages") "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" (define-derived-mode magit-log-edit-mode text-mode "Magit Log Edit"
(set (make-local-variable 'fill-paragraph-function) (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 () (defun magit-log-edit-cleanup ()
(save-excursion (save-excursion