Files
.emacs.d/modules/version-control/siren-diff-hl.el
Jim Myhrberg 831503060f chore(startup): stop using emacs-startup-hook to trigger package load
Packages that need to be loaded on emacs startup, should just be loaded
through use-package in a non-deferred manner.

It makes no real difference to startup, loading the packages either
slows down emacs before "startup" is complete, or right after it
completes. End result is that Emacs is unresponsive for basically the
same amount of time regardless.
2021-02-17 01:52:58 +00:00

25 lines
525 B
EmacsLisp

;;; siren-diff-hl.el --- jimeh's Emacs Siren: diff-hl configuration.
;;; Commentary:
;; Basic configuration for diff-hl.
;;; Code:
(require 'siren-magit)
(use-package diff-hl
:hook
(prog-mode . siren-turn-on-diff-hl-mode)
(text-mode . siren-turn-on-diff-hl-mode)
(dired-mode . diff-hl-dired-mode)
(magit-post-refresh . diff-hl-magit-post-refresh)
:init
(defun siren-turn-on-diff-hl-mode ()
(turn-on-diff-hl-mode)
(diff-hl-flydiff-mode 1)))
(provide 'siren-diff-hl)
;;; siren-diff-hl.el ends here