Created
April 22, 2017 10:34
-
-
Save enisozgen/e6cfb1d2a78bc9490b8cd18d1ee0c189 to your computer and use it in GitHub Desktop.
Nice diff's gonna save your time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Few changes to https://github.com/abo-abo/hydra/wiki/Git-gutter | |
(defhydra hydra-git-gutter (:body-pre | |
(save-buffer) | |
(git-gutter-mode 1) | |
:hint nil | |
:color blue) | |
" | |
Git gutter: | |
_n_: next hunk _s_tage hunk _u_ndo _r_edo _q_uit | |
_p_: previous hunk _R_evert hunk ^ ^ _Q_uit and deactivate git-gutter | |
^ ^ _p_opup hunk _mh_ helm hunk | |
_f_: first hunk | |
_l_: last hunk set start re_V_ision | |
" | |
("n" git-gutter:next-hunk) | |
("p" git-gutter:previous-hunk) | |
("f" (progn (goto-char (point-min)) | |
(git-gutter:next-hunk 1))) | |
("l" (progn (goto-char (point-min)) | |
(git-gutter:previous-hunk 1))) | |
("s" git-gutter:stage-hunk) | |
("R" git-gutter:revert-hunk) | |
("d" git-gutter:popup-hunk) | |
("V" git-gutter:set-start-revision) | |
("mh" helm-hunks :color green exit: t) | |
("u" (progn (undo-tree-undo) | |
(save-buffer))) | |
("r" (progn (undo-tree-redo) | |
(save-buffer))) | |
("q" nil :color red) | |
("Q" (progn (git-gutter-mode -1) | |
;; git-gutter-fringe doesn't seem to | |
;; clear the markup right away | |
(sit-for 0.1) | |
(git-gutter:clear)) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment