From f6616e8a068834a2726ea11894806f436dd1ca2b Mon Sep 17 00:00:00 2001 From: roife Date: Sat, 18 Feb 2023 14:00:59 +0800 Subject: [PATCH] fix(vc-gutter): add missing autoloads Add required autoloads for vc-gutter to fix errors from which-key. See the issue below. Fix: #6957 --- modules/ui/vc-gutter/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index c555f9d08..0f3b2bea1 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -66,7 +66,7 @@ (use-package! git-gutter :unless (modulep! +diff-hl) - :commands git-gutter:revert-hunk git-gutter:stage-hunk + :commands git-gutter:revert-hunk git-gutter:stage-hunk git-gutter:previous-hunk git-gutter:next-hunk :init (add-hook! 'find-file-hook (defun +vc-gutter-init-maybe-h () @@ -150,6 +150,7 @@ is deferred until the file is saved. Respects `git-gutter:disabled-modes'." :hook (vc-dir-mode . diff-hl-dir-mode) :hook (dired-mode . diff-hl-dired-mode) :hook (diff-hl-mode . diff-hl-flydiff-mode) + :commands diff-hl-stage-current-hunk diff-hl-revert-hunk diff-hl-next-hunk diff-hl-previous-hunk :config (set-popup-rule! "^\\*diff-hl" :select nil :size '+popup-shrink-to-fit)