all repos — nixfiles @ 976629e31714cc0c57f133bbf640c9af83cee792

System and user configuration, managed by nix and home-manager

Emacs: enable git-gutter after tweaking fringes
Alan Pearce alan@alanpearce.eu
Thu, 23 Apr 2020 13:15:18 +0200
commit

976629e31714cc0c57f133bbf640c9af83cee792

parent

7657810bbd45bbd9421d51d647508d9972edab47

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -454,7 +454,6 @@ (eval-when-compile (require 'fringe-helper)) (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 @@ (fringe-helper-define 'git-gutter-fr:modified '(center repeated)               ".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)