Skip to content

Instantly share code, notes, and snippets.

@herbertjones
Created February 21, 2015 22:07
Show Gist options
  • Save herbertjones/4ceaac254bd620c28e51 to your computer and use it in GitHub Desktop.
Save herbertjones/4ceaac254bd620c28e51 to your computer and use it in GitHub Desktop.
Git timemachine micro state
(evil-leader/set-key
"gt" nil
"gt" 'spacemacs/time-machine-micro-state)
(spacemacs|define-micro-state time-machine
:doc "[q] quit [p] previous [n] next [c] current"
:on-enter (git-timemachine)
:on-exit (git-timemachine-quit)
:persistent t
:bindings
("c" git-timemachine-show-current-revision)
("p" git-timemachine-show-previous-revision)
("n" git-timemachine-show-next-revision)
("q" nil :exit t)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment