Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Created September 2, 2010 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjohansen/562897 to your computer and use it in GitHub Desktop.
Save cjohansen/562897 to your computer and use it in GitHub Desktop.
(defun git-walk (direction)
(interactive)
(shell-command (concat "git walk " direction))
(revert-buffer nil t))
(defun git-walk-next ()
(interactive)
(git-walk "next"))
(defun git-walk-prev ()
(interactive)
(git-walk "prev"))
;; Key-bindings
(global-set-key (kbd "C-c <right>") 'git-walk-next)
(global-set-key (kbd "C-c <left>") 'git-walk-prev)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment