Created
September 2, 2010 20:34
-
-
Save cjohansen/562897 to your computer and use it in GitHub Desktop.
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
(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