emacs: tweak the diff-hl settings

This commit is contained in:
Protesilaos 2026-05-18 22:21:55 +03:00
parent 6d5fea8b7f
commit fe2c236afb
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 12 additions and 8 deletions

View file

@ -37,15 +37,17 @@
(prot-emacs-configure
(prot-emacs-install diff-hl)
(setq diff-hl-draw-borders nil)
(setq diff-hl-update-async t)
(prot-emacs-keybind global-map
"C-x v <up>" #'diff-hl-previous-hunk
"C-x v <down>" #'diff-hl-next-hunk)
(setq diff-hl-draw-borders nil)
(setq diff-hl-update-async t)
(prot-emacs-hook (prog-mode-hook vc-dir-mode-hook) turn-on-diff-hl-mode)
(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode))
(with-eval-after-load 'magit
(add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh)))
;;;; `ediff'
(prot-emacs-configure

View file

@ -7017,15 +7017,17 @@ sequence of function calls.
(prot-emacs-configure
(prot-emacs-install diff-hl)
(setq diff-hl-draw-borders nil)
(setq diff-hl-update-async t)
(prot-emacs-keybind global-map
"C-x v <up>" #'diff-hl-previous-hunk
"C-x v <down>" #'diff-hl-next-hunk)
(setq diff-hl-draw-borders nil)
(setq diff-hl-update-async t)
(prot-emacs-hook (prog-mode-hook vc-dir-mode-hook) turn-on-diff-hl-mode)
(add-hook 'prog-mode-hook 'turn-on-diff-hl-mode)
(add-hook 'vc-dir-mode-hook 'turn-on-diff-hl-mode))
(with-eval-after-load 'magit
(add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh)))
#+end_src
*** The =prot-emacs-git.el= section about ediff