Add a hook for magit-log-edit-mode
This commit is contained in:
parent
50ac04d222
commit
35dfceb3b5
1 changed files with 4 additions and 1 deletions
5
magit.el
5
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
|
||||
|
|
Loading…
Reference in a new issue