From a6826d37b3c7b14198cda4bc8c2e270dfbf8d2a2 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sun, 31 Dec 2023 08:51:55 -0500 Subject: fix diff-hl-mode --- emacs/.config/emacs-kj/init.el | 2 +- emacs/.config/emacs-kj/lisp/kj-development.el | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs/.config') diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el index 68f0c21..dda4edd 100644 --- a/emacs/.config/emacs-kj/init.el +++ b/emacs/.config/emacs-kj/init.el @@ -232,7 +232,7 @@ :ensure t :after (embark consult) :demand t - :hook (embark-mode-hook . consult-preview-at-point-mode)) + :hook (embark-mode . consult-preview-at-point-mode)) ;; For editing grep buffers. (use-package wgrep) diff --git a/emacs/.config/emacs-kj/lisp/kj-development.el b/emacs/.config/emacs-kj/lisp/kj-development.el index 3041319..397f0cc 100644 --- a/emacs/.config/emacs-kj/lisp/kj-development.el +++ b/emacs/.config/emacs-kj/lisp/kj-development.el @@ -76,6 +76,8 @@ (use-package diff-hl :config + (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh) + (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) (global-diff-hl-mode)) (use-package graphviz-dot-mode -- cgit v1.2.3