Allow adding custom hooks to magit-log-edit-mode.

Signed-off-by: Ramkumar Ramachandra <[email protected]>
---
 magit.el |    4 +++-
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/magit.el b/magit.el
index af15e0f..53cb462 100644
--- a/magit.el
+++ b/magit.el
@@ -1376,6 +1376,7 @@ Many Magit faces inherit from this one by default."
     ["Quit Magit" quit-window t]))

 (defvar magit-mode-hook nil)
+(defvar magit-log-edit-mode-hook nil)

 (put 'magit-mode 'mode-class 'special)

@@ -2636,7 +2637,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
-- 
1.7.0.2

To unsubscribe from this group, send email to magit+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.

Reply via email to