home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit fb96e81b2b3f33232000058127e775880c4828b8
parent dabb7ad1a911fb79f3d3a2a64c65187d2a8b4a77
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 24 Feb 2022 17:37:33 +0100

tools/emacs: add git-gutter 💂

Because it's pretty 😅

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-vcs.el | 11+++++++++++
Musers/vincent/dev/emacs.nix | 2++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-vcs.el b/tools/emacs/config/config-vcs.el @@ -175,5 +175,16 @@ (kill-buffer log-buf)) (kill-buffer commit-buf))) +(use-package git-gutter + :hook (prog-mode . git-gutter-mode) + :config + (setq git-gutter:update-interval 0.2)) + +(use-package git-gutter-fringe + :config + (define-fringe-bitmap 'git-gutter-fr:added [224] nil nil '(center repeated)) + (define-fringe-bitmap 'git-gutter-fr:modified [224] nil nil '(center repeated)) + (define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] nil nil 'bottom)) + (provide 'config-vcs) ;;; config-vcs.el ends here diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -57,6 +57,8 @@ let git-annex git-modes git-commit + git-gutter + git-gutter-fringe github-review go-mode gotest