Try out diff-hl

Inspired by https://www.rahuljuliato.com/posts/dired-enhanced.
This commit is contained in:
Daniel Borchmann 2025-05-01 11:17:26 +02:00
parent b4b0bab9c2
commit 5ffdcf2954
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

13
init.el
View File

@ -1513,6 +1513,11 @@ Note that this workaround is incomplete, as explained in this comment."
(add-hook 'prog-mode-hook 'page-break-lines-mode) (add-hook 'prog-mode-hook 'page-break-lines-mode)
(add-hook 'prog-mode-hook 'display-fill-column-indicator-mode))) (add-hook 'prog-mode-hook 'display-fill-column-indicator-mode)))
(use-package diff-hl
:ensure t
:commands (global-diff-hl-mode
diff-hl-dired-mode))
(use-package ediff (use-package ediff
:init (setq ediff-diff-options "-w" :init (setq ediff-diff-options "-w"
ediff-window-setup-function 'ediff-setup-windows-plain ediff-window-setup-function 'ediff-setup-windows-plain
@ -2224,7 +2229,10 @@ Note that this workaround is incomplete, as explained in this comment."
(add-hook 'dired-mode-hook 'dired-omit-mode) (add-hook 'dired-mode-hook 'dired-omit-mode)
(add-hook 'dired-mode-hook 'dired-hide-details-mode) (add-hook 'dired-mode-hook 'dired-hide-details-mode)
(dolist (extension '(".out" ".synctex.gz" ".thm")) (dolist (extension '(".out" ".synctex.gz" ".thm"))
(add-to-list 'dired-latex-unclean-extensions extension)))) (add-to-list 'dired-latex-unclean-extensions extension))
;; Show VC status information in dired buffers
(add-hook 'dired-mode-hook 'diff-hl-dired-mode)))
(use-package dired-open (use-package dired-open
:ensure t :ensure t
@ -3046,7 +3054,8 @@ eventuelly be set to nil, however)."
yas-global-mode yas-global-mode
global-git-commit-mode global-git-commit-mode
marginalia-mode marginalia-mode
vertico-mode)) vertico-mode
global-diff-hl-mode))
(with-demoted-errors "Cannot activate mode: %s" (with-demoted-errors "Cannot activate mode: %s"
(funcall mode +1))) (funcall mode +1)))