all repos — nixfiles @ e67e9b5e221d9b64330a148cbedaf0eef3217df4

System and user configuration, managed by nix and home-manager

Replace diff-hl with git-gutter-fringe

Alan Pearce
commit

e67e9b5e221d9b64330a148cbedaf0eef3217df4

parent

cfd231c8243c5f90182c78afc7acdc40cf4355dd

1 file changed, 7 insertions(+), 7 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -460,19 +460,19 @@ :config (progn
(setq vc-follow-symlinks t))) #+END_SRC -** diff-hl +** git-gutter-fringe It’s nice to be able to see at a glance which lines of a file have -changed. This package colours the fringe +changed. This package colours the fringe. I have it set to the right +fringe so it doesn’t interfere with flycheck. #+BEGIN_SRC emacs-lisp - (use-package diff-hl + (use-package git-gutter-fringe :defer 2 + :diminish git-gutter-mode :config (progn - (global-diff-hl-mode 1) - (add-hook 'dired-mode-hook (lambda () - (diff-hl-dired-mode 1))) - (add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh))) + (global-git-gutter-mode) + (setq git-gutter-fr:side 'right-fringe))) #+END_SRC ** magit