From 35dfceb3b51c37b231521f550734726f1a362b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 17 May 2010 07:19:00 +0800 Subject: [PATCH] Add a hook for magit-log-edit-mode --- magit.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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