diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index 4225dfa2d..e3c061a55 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -69,8 +69,9 @@ (defun +vc-gutter-enable-maybe-h () "Conditionally enable `diff-hl-dired-mode' in dired buffers. Respects `diff-hl-disable-on-remote'." - (unless (and (bound-and-true-p dirvish-override-dired-mode) - (bound-and-true-p diff-hl-disable-on-remote) + ;; Neither `diff-hl-dired-mode' or `diff-hl-dired-mode-unless-remote' + ;; respect `diff-hl-disable-on-remote', so... + (unless (and (bound-and-true-p diff-hl-disable-on-remote) (file-remote-p default-directory)) (diff-hl-dired-mode +1))))