all repos — nixfiles @ da7c91c51d080b304e55b36dbff6b3283fdf4969

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

Emacs: trigger git-gutter updates with magit actions
Alan Pearce alan@alanpearce.eu
Wed, 09 Oct 2019 22:34:55 +0200
commit

da7c91c51d080b304e55b36dbff6b3283fdf4969

parent

5a3de041222846e71d33a6c3ec227b75a646bd9d

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

jump to
M user/emacs/.emacs.d/init.eluser/emacs/.emacs.d/init.el
@@ -407,6 +407,8 @@ (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.
             (setq-default fringes-outside-margins nil)
             ;; thin fringe bitmaps