Skip to content

Instantly share code, notes, and snippets.

@rlb3
Created March 28, 2013 14:26
Show Gist options
  • Select an option

  • Save rlb3/5263535 to your computer and use it in GitHub Desktop.

Select an option

Save rlb3/5263535 to your computer and use it in GitHub Desktop.
(require 'git-gutter)
;; If you enable global minor mode
(global-git-gutter-mode t)
(global-set-key (kbd "C-c C-g") 'git-gutter:toggle)
(global-set-key (kbd "C-c v =") 'git-gutter:popup-diff)
;; Jump to next/previous hunk
(global-set-key (kbd "M-p") 'git-gutter:previous-hunk)
(global-set-key (kbd "M-n") 'git-gutter:next-hunk)
;; Revert current hunk
(global-set-key (kbd "C-c C-r") 'git-gutter:revert-hunk)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment