diff options
author | Alan Pearce | 2017-05-22 16:51:47 +0200 |
---|---|---|
committer | Alan Pearce | 2017-05-22 16:51:47 +0200 |
commit | bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4 (patch) | |
tree | 13dd97c0c77dd1d79a9e89bd674caf0ffc009e7e | |
parent | 7846fd944c13a09578316924a1365a5b369a96b7 (diff) | |
download | nixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.tar.lz nixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.tar.zst nixfiles-bbf952dce8bfa1e6c6fffb576d93f5fad7bb24b4.zip |
Emacs: Make git-gutter look nicer
-rw-r--r-- | emacs/.emacs.d/init.org | 20 |
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 |