From c0df3f0b3fd3b055b5049d453023d5bd8239f608 Mon Sep 17 00:00:00 2001 From: Rich Alesi Date: Sun, 21 Dec 2014 22:08:41 -0700 Subject: [PATCH] Added bindings to move between git gutter hunks and to allow staging --- contrib/git/packages.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/git/packages.el b/contrib/git/packages.el index 68a3f6cf1..830d5ee44 100644 --- a/contrib/git/packages.el +++ b/contrib/git/packages.el @@ -67,6 +67,11 @@ implementation." (setq git-gutter:hide-gutter t) ;; Don't need log/message. (setq git-gutter:verbosity 0) + (evil-leader/set-key + "ga" 'git-gutter:stage-hunk + "gr" 'git-gutter:revert-hunk + "gk" 'git-gutter:previous-hunk + "gj" 'git-gutter:next-hunk) (setq git-gutter-fr:side 'right-fringe) ;; (setq git-gutter:update-hooks '(after-save-hook after-revert-hook)) ;; custom graphics that works nice with half-width fringes