mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: tweak the diff-hl settings
This commit is contained in:
parent
6d5fea8b7f
commit
fe2c236afb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue