diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-27 23:51:40 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-27 23:51:40 +1000 |
commit | 5142e4227a0d10f8e5481523710b2c17b2054889 (patch) | |
tree | a21ccf1e495d814ba0c4c09c2335d43bacaab7d3 /emacs | |
parent | 002c98545eb799b2293ee98459d534339739b032 (diff) |
diff-hl-mode only in prog-mode, and add urxvt
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init/ycp-vc.el | 4 |
1 files changed, 3 insertions, 1 deletions
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 |