diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-git.el | 4 |
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 |