diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-20 23:57:07 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-20 23:57:07 -0400 |
commit | e3176dd410d2ed5b5211c3aab64e48a09abb5574 (patch) | |
tree | dc62ed33143d8a98ffe57cd562b1c3a38c631d29 | |
parent | Enable `global-diff-hl-mode` (diff) | |
download | mmosmacs-e3176dd410d2ed5b5211c3aab64e48a09abb5574.tar.gz mmosmacs-e3176dd410d2ed5b5211c3aab64e48a09abb5574.tar.bz2 mmosmacs-e3176dd410d2ed5b5211c3aab64e48a09abb5574.zip |
Use hooks to start `diff-hl` mode only in `prog-mode` buffers
-rw-r--r-- | init.el | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -497,9 +497,9 @@ | |||
497 | 497 | ||
498 | (use-package diff-hl | 498 | (use-package diff-hl |
499 | :straight t | 499 | :straight t |
500 | :config | 500 | :hook |
501 | (global-diff-hl-mode) | 501 | (prog-mode . diff-hl-mode) |
502 | (diff-hl-flydiff-mode)) | 502 | (diff-hl-mode . diff-hl-flydiff-mode)) |
503 | 503 | ||
504 | 504 | ||
505 | 505 | ||