summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-12-23 00:18:06 -0500
committerKyle Meyer <kyle@kyleam.com>2014-12-23 00:18:06 -0500
commitcf96c17ead9b65db1d4f42add40bcd036160c7ae (patch)
tree3f0edbee35e826cd5a2d4c82bea81cb1635502ce /lisp
parent4bb775412408e36d465d4401af8a85355bb4c3cd (diff)
downloademacs.d-cf96c17ead9b65db1d4f42add40bcd036160c7ae.tar.gz
Bind magit-diff-visit-file-worktree to C-j
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-git.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/init-git.el b/lisp/init-git.el
index 9de3546..5f1ab82 100644
--- a/lisp/init-git.el
+++ b/lisp/init-git.el
@@ -168,6 +168,10 @@ START-POINT set to the current branch.
(define-key magit-mode-map "N" 'km/magit-stage-file-intent)
+ ;; `magit-diff-visit-file-worktree' is also on C-RET.
+ (define-key magit-file-section-map (kbd "C-j") 'magit-diff-visit-file-worktree)
+ (define-key magit-hunk-section-map (kbd "C-j") 'magit-diff-visit-file-worktree)
+
(magit-define-popup-action 'magit-commit-popup
?u "Auto commit" 'km/magit-auto-commit)
(magit-define-popup-action 'magit-push-popup