From e3176dd410d2ed5b5211c3aab64e48a09abb5574 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Sat, 20 May 2023 23:57:07 -0400 Subject: Use hooks to start `diff-hl` mode only in `prog-mode` buffers --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index df12d7d..3961269 100644 --- a/init.el +++ b/init.el @@ -497,9 +497,9 @@ (use-package diff-hl :straight t - :config - (global-diff-hl-mode) - (diff-hl-flydiff-mode)) + :hook + (prog-mode . diff-hl-mode) + (diff-hl-mode . diff-hl-flydiff-mode)) -- cgit v1.2.3