about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-git.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-prelude/personal/lisp/init-git.el')
-rw-r--r--emacs-prelude/personal/lisp/init-git.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/emacs-prelude/personal/lisp/init-git.el b/emacs-prelude/personal/lisp/init-git.el
index 7bc19f1..626b3d0 100644
--- a/emacs-prelude/personal/lisp/init-git.el
+++ b/emacs-prelude/personal/lisp/init-git.el
@@ -21,5 +21,14 @@
 (use-package forge
   :after magit)
 
-(provide 'init-git)
+(prelude-require-package 'git-gutter)
+(use-package git-gutter
+  :diminish
+  :bind
+  ("C-c j g" . git-gutter-mode)
+  ("C-c j S-g" . git-gutter)
+  ("C-c j n" . git-gutter:next-hunk)
+  ("C-c j p" . git-gutter:previous-hunk)
+  ("C-c j r" . git-gutter:revert-hunk))
 
+(provide 'init-git)