From 5b8aba2cfe71549b3dc252134d437de20aa86291 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Mon, 21 Nov 2022 10:56:59 -0800 Subject: [PATCH] Make the Git changes more noticeable Place the git changes marked in the right side of the fringe doesn't confuse with the issues that I put on the left. --- ha-config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ha-config.org b/ha-config.org index 46c3d13..52810fe 100644 --- a/ha-config.org +++ b/ha-config.org @@ -1833,7 +1833,18 @@ Can not live without [[https://magit.vc/][Magit]], a Git porcelain for Emacs. I The [[https://github.com/syohex/emacs-git-gutter-fringe][git-gutter-fringe]] project displays markings in the fringe (extreme left margin) to show modified and uncommitted lines. This project builds on [[https://github.com/emacsorphanage/git-gutter][git-gutter]] project to provide movement between /hunks/: #+begin_src emacs-lisp (use-package git-gutter-fringe + :custom + ;; To have both flymake and git-gutter work, we put + ;; git-gutter on the right side: + (git-gutter-fr:side 'right-fringe) + (left-fringe-width 15) + (right-fringe-width 10) + :config + (set-face-foreground 'git-gutter-fr:modified "yellow") + (set-face-foreground 'git-gutter-fr:added "green") + (set-face-foreground 'git-gutter-fr:deleted "red") + (global-git-gutter-mode) (ha-leader