Fix magit-log-edit-mode keymap definition and activation.
Rely on the standard define-derived-mode functionality.
This commit is contained in:
parent
42c63c3a10
commit
01d58d4385
1 changed files with 2 additions and 3 deletions
5
magit.el
5
magit.el
|
@ -2586,7 +2586,7 @@ branch."
|
||||||
|
|
||||||
;;; Log edit mode
|
;;; Log edit mode
|
||||||
|
|
||||||
(defvar magit-log-edit-map
|
(defvar magit-log-edit-mode-map
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
(define-key map (kbd "C-c C-c") 'magit-log-edit-commit)
|
(define-key map (kbd "C-c C-c") 'magit-log-edit-commit)
|
||||||
(define-key map (kbd "C-c C-a") 'magit-log-edit-toggle-amending)
|
(define-key map (kbd "C-c C-a") 'magit-log-edit-toggle-amending)
|
||||||
|
@ -2612,8 +2612,7 @@ 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))
|
||||||
(use-local-map magit-log-edit-map))
|
|
||||||
|
|
||||||
(defun magit-log-edit-cleanup ()
|
(defun magit-log-edit-cleanup ()
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
|
Loading…
Reference in a new issue