add autoloads

This commit is contained in:
2025-07-01 15:11:27 +02:00
parent 73a9ab93c7
commit 9d312c7c5b
3 changed files with 351 additions and 1 deletions

View File

@@ -55,6 +55,7 @@
(use-package diff-hl
;; show diffs in fringes (for margins see `diff-hl-margin')
;; https://github.com/dgutov/diff-hl
:init (require 'diff-hl-autoloads)
:hook (((prog-mode vc-dir-mode org-mode) . turn-on-diff-hl-mode)
(magit-pre-refresh . diff-hl-magit-pre-refresh)
(magit-post-refresh . diff-hl-magit-post-refresh))
@@ -65,7 +66,6 @@
;; navigation and revert commands still work. Consider turning
;; diff-hl-margin-mode on, to show the indicators in the margin
;; instead.
:after diff-hl
:unless (display-graphic-p)
:hook ((diff-hl-mode . diff-hl-margin-mode)))