configs/emacs: add shortcuts for git-gutters stuff

This commit is contained in:
Aaron Bieber 2024-06-20 15:10:46 -06:00
parent 27bc69b8dd
commit 8d86c03f55
No known key found for this signature in database

View File

@ -230,9 +230,13 @@ things like Go.
This gives me a nice in-ui way to see modifications and what not.
#+begin_src emacs-lisp
(use-package git-gutter
:hook
(after-init . global-git-gutter-mode))
(use-package git-gutter
:hook
(after-init . global-git-gutter-mode)
:config
(global-set-key (kbd "C-x g r") 'git-gutter:revert-hunk)
(global-set-key (kbd "C-x g p") 'git-gutter:previous-hunk)
(global-set-key (kbd "C-x g n") 'git-gutter:next-hunk))
#+end_src
** shell