summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2020-04-23 13:15:18 +0200
committerAlan Pearce2020-04-23 13:15:18 +0200
commit976629e31714cc0c57f133bbf640c9af83cee792 (patch)
tree250b506aee3ec881165f77ff385d42daf67c0f4a /user
parent7657810bbd45bbd9421d51d647508d9972edab47 (diff)
downloadnixfiles-976629e31714cc0c57f133bbf640c9af83cee792.tar.lz
nixfiles-976629e31714cc0c57f133bbf640c9af83cee792.tar.zst
nixfiles-976629e31714cc0c57f133bbf640c9af83cee792.zip
Emacs: enable git-gutter after tweaking fringes
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 4d19b7e0..3652d135 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -454,7 +454,6 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 (use-package git-gutter-fringe
   :defer 5
   :config (progn
-            (global-git-gutter-mode 1)
             (add-hook 'magit-post-refresh-hook
                       #'git-gutter:update-all-windows)
             ;; places the git gutter outside the margins.
@@ -466,7 +465,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
               ".XXX....")
             (fringe-helper-define 'git-gutter-fr:deleted '(center repeated)
               ".XXX....")
-            (setq git-gutter-fr:side 'right-fringe)))
+            (setq git-gutter-fr:side 'right-fringe)
+            (global-git-gutter-mode 1)))
 
 (use-package git-messenger
   :commands (git-messenger:popup-message)