Skip to content

Commit

Permalink
tweak(diffview): add keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 15, 2023
1 parent 98ab319 commit d7b1998
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion modules/me-vc.el
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,19 @@
:straight (:host bitbucket :repo "olanilsson/gee"))

(use-package diffview
:straight t)
:straight t
:init
(with-eval-after-load 'diff-mode
(+map-local! :keymaps 'diff-mode-map
"v" #'diffview-current
"V" #'diffview-region))
:config
(+nvmap! :keymaps 'diffview--mode-map
"=" #'diffview--align-windows
"+" #'diffview--align-windows
"C-j" #'diffview--next-file
"C-k" #'diffview--prev-file
"q" #'diffview--quit))


(provide 'me-vc)
Expand Down

0 comments on commit d7b1998

Please sign in to comment.