From 5142e4227a0d10f8e5481523710b2c17b2054889 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 27 Jun 2023 23:51:40 +1000 Subject: diff-hl-mode only in prog-mode, and add urxvt --- emacs/.emacs.d/init/ycp-vc.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init/ycp-vc.el b/emacs/.emacs.d/init/ycp-vc.el index 7496cef..d30fcc7 100644 --- a/emacs/.emacs.d/init/ycp-vc.el +++ b/emacs/.emacs.d/init/ycp-vc.el @@ -81,7 +81,9 @@ (my-package diff-hl (:delay 30) (:install t) - (global-diff-hl-mode) + ;; diff-hl-mode can slow down things in buffers visiting large + ;; files, so here we only enable it for prog-mode + (add-hook 'prog-mode-hook diff-hl-mode) (diff-hl-flydiff-mode)) (my-package diffview -- cgit v1.2.3