 (def-package! git-gutter
   :commands (git-gutter:revert-hunk git-gutter:stage-hunk)
   :init
-  (defun +version-control|git-gutter-maybe ()
+  (defun +vc-gutter|init-maybe ()
     "Enable `git-gutter-mode' in the current buffer.
 
 If the buffer doesn't represent an existing file, `git-gutter-mode's activation

                   (not (file-remote-p (or buffer-file-name default-directory))))
               (not (memq major-mode (bound-and-true-p git-gutter:disabled-modes))))
      (if (not buffer-file-name)
          (add-hook 'after-save-hook #'+version-control|git-gutter-maybe nil t)
        (when (vc-backend buffer-file-name)
          (if (display-graphic-p)
              (progn

  ;; Update git-gutter on focus (in case I was using git externally)
  (add-hook 'focus-in-hook #'git-gutter:update-all-windows)

  (defun +vc-gutter|update (&rest _)
    "Refresh git-gutter on ESC. Return nil to prevent shadowing other
`doom-escape-hook' hooks."
    (when git-gutter-mode
      (ignore (git-gutter))))
  (add-hook 'doom-escape-hook #'+vc-gutter|update t)

  ;; update git-gutter when using magit commands
  (advice-add #'magit-stage-file   :after #'+vc-gutter|update)
  (advice-add #'magit-unstage-file :after #'+vc-gutter|update))


;; subtle diff indicators in the fringe
