From e67e9b5e221d9b64330a148cbedaf0eef3217df4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 7 Dec 2016 09:29:06 +0100 Subject: Replace diff-hl with git-gutter-fringe --- tag-emacs/emacs.d/init.org | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index bdea6d6..ab74728 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -460,19 +460,19 @@ occasions that I’m working with something other than git. (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 -- cgit 1.4.1