From d2b814ad9e7d79a7f7d4549ff00d799713f220c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 9 Apr 2010 13:23:00 +0200 Subject: [PATCH] Moving hunk size modifier in modes where there are hunks. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Vanicat --- magit.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/magit.el b/magit.el index 01edcc2d..daa63d35 100644 --- a/magit.el +++ b/magit.el @@ -1369,9 +1369,6 @@ FUNC should leave point at the end of the modified region" (define-key map (kbd "?") 'magit-describe-item) (define-key map (kbd ".") 'magit-mark-item) (define-key map (kbd "=") 'magit-diff-with-mark) - (define-key map (kbd "-") 'magit-diff-smaller-hunks) - (define-key map (kbd "+") 'magit-diff-larger-hunks) - (define-key map (kbd "0") 'magit-diff-default-hunks) (define-key map (kbd "l") 'magit-log) (define-key map (kbd "L") 'magit-log-long) (define-key map (kbd "h") 'magit-reflog-head) @@ -1426,10 +1423,16 @@ FUNC should leave point at the end of the modified region" (defvar magit-status-mode-map (let ((map (make-sparse-keymap))) + (define-key map (kbd "-") 'magit-diff-smaller-hunks) + (define-key map (kbd "+") 'magit-diff-larger-hunks) + (define-key map (kbd "0") 'magit-diff-default-hunks) map)) (defvar magit-stash-mode-map (let ((map (make-sparse-keymap))) + (define-key map (kbd "-") 'magit-diff-smaller-hunks) + (define-key map (kbd "+") 'magit-diff-larger-hunks) + (define-key map (kbd "0") 'magit-diff-default-hunks) map)) (defvar magit-log-mode-map @@ -1442,6 +1445,9 @@ FUNC should leave point at the end of the modified region" (defvar magit-diff-mode-map (let ((map (make-sparse-keymap))) + (define-key map (kbd "-") 'magit-diff-smaller-hunks) + (define-key map (kbd "+") 'magit-diff-larger-hunks) + (define-key map (kbd "0") 'magit-diff-default-hunks) map)) (defvar magit-wazzup-mode-map