Fix magit-log-edit-mode keymap definition and activation.

Rely on the standard define-derived-mode functionality.
This commit is contained in:
Hannu Koivisto 2010-01-08 20:32:56 +02:00
parent 42c63c3a10
commit 01d58d4385

View file

@ -2586,7 +2586,7 @@ branch."
;;; Log edit mode
(defvar magit-log-edit-map
(defvar magit-log-edit-mode-map
(let ((map (make-sparse-keymap)))
(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)
@ -2612,8 +2612,7 @@ 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)
(use-local-map magit-log-edit-map))
'magit-log-fill-paragraph))
(defun magit-log-edit-cleanup ()
(save-excursion