summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-05-22 16:51:47 +0200
committerAlan Pearce2017-05-22 16:51:47 +0200
commitbbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4 (patch)
tree13dd97c0c77dd1d79a9e89bd674caf0ffc009e7e /emacs
parent7846fd944c13a09578316924a1365a5b369a96b7 (diff)
downloadnixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.tar.lz
nixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.tar.zst
nixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.zip
Emacs: Make git-gutter look nicer
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org20
1 files changed, 17 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 85697fe3..4b2303a5 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -172,7 +172,10 @@ Eziam looks nice, too
   :defines (eziam-scale-headings)
   :config (progn
             (setq eziam-scale-headings nil)
-            (load-theme 'eziam-light t)))
+            (load-theme 'eziam-light t)
+            (set-face-foreground 'git-gutter-fr:added "#96a4ab")
+            (set-face-foreground 'git-gutter-fr:modified "#96a4ab")
+            (set-face-foreground 'git-gutter-fr:deleted "#96a4ab")))
 #+END_SRC
 
 Highlighting quasi-quoted expressions in lisps is quite useful, but I
@@ -575,8 +578,19 @@ fringe so it doesn’t interfere with flycheck.
   :diminish git-gutter-mode
   :config (progn
             (global-git-gutter-mode 1)
-            (set-face-foreground 'git-gutter:modified "grey")
-            (setq git-gutter-fr:side 'right-fringe)))
+            ;; places the git gutter outside the margins.
+            (setq-default fringes-outside-margins t)
+            ;; thin fringe bitmaps
+            (fringe-helper-define 'git-gutter-fr:added '(center repeated)
+              "XXX.....")
+            (fringe-helper-define 'git-gutter-fr:modified '(center repeated)
+              "XXX.....")
+            (fringe-helper-define 'git-gutter-fr:deleted 'bottom
+              "X......."
+              "XX......"
+              "XXX....."
+              "XXXX....")
+            (setq git-gutter-fr:side 'left-fringe)))
 #+END_SRC
 
 ** magit