From 5b5c4478b8349b10667610e3b1933cf8c97ecabe Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Thu, 19 Mar 2020 19:03:33 +0100 Subject: [PATCH] Replace git-gutter-fringe with diff-hl --- init.org | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/init.org b/init.org index ee13d20..e9a7d70 100644 --- a/init.org +++ b/init.org @@ -187,12 +187,12 @@ company ; Modular text completion framework company-coq ; A collection of extensions PG's Coq mode define-word ; display the definition of word at point + diff-hl ; Highlight uncommitted changes using VC diminish ; Diminished modes from modeline doom-themes ; An opinionated pack of modern color-themes erlang ; Erlang major mode expand-region ; Increase selected region by semantic units focus ; Dim color of text in surrounding sections - git-gutter-fringe ; Fringe version of git-gutter.el golden-ratio ; Automatic resizing windows to golden ratio haskell-mode ; A Haskell editing mode helm ; Incremental and narrowing framework @@ -369,7 +369,6 @@ delete-selection-mode ; Replace selected text dirtrack-mode ; directory tracking in *shell* global-company-mode ; Auto-completion everywhere - global-git-gutter-mode ; Show changes latest commit global-prettify-symbols-mode ; Greek letters should look greek projectile-mode ; Manage and navigate projects recentf-mode ; Recently opened files @@ -377,6 +376,8 @@ which-key-mode)) ; Available keybindings in popup (funcall mode 1)) + (global-diff-hl-mode) + (when (version< emacs-version "24.4") (eval-after-load 'auto-compile '((auto-compile-on-save-mode 1)))) ; compile .el files on save @@ -434,22 +435,6 @@ (safe-diminish "paredit" 'paredit-mode "()") #+END_SRC - [[https://github.com/syohex/emacs-git-gutter-fringe][git-gutter-fringe]] gives a great visual indication of where you've made - changes since your last commit. There are several packages that performs - this task; the reason I've ended up with =git-gutter-fringe= is that it - reuses the (already present) fringe, saving a tiny bit of screen-estate. - - I smuggled some configurations from [[https://github.com/torenord/.emacs.d/][torenord]], providing a cleaner look. - - #+BEGIN_SRC emacs-lisp - (with-eval-after-load 'git-gutter-fringe - (dolist (p '((git-gutter:added . "#0c0") - (git-gutter:deleted . "#c00") - (git-gutter:modified . "#c0c"))) - (set-face-foreground (car p) (cdr p)) - (set-face-background (car p) (cdr p)))) - #+END_SRC - New in Emacs 24.4 is the =prettify-symbols-mode=! It's neat. #+BEGIN_SRC emacs-lisp