From afffa5bade64e6fb44ca970d0230423e60551ef6 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Fri, 4 Jul 2025 23:58:01 -0400 Subject: [PATCH] Add redisplay-skip-fontification-on-input --- README.md | 5 ----- init.el | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bca1077..1c4989b 100644 --- a/README.md +++ b/README.md @@ -1400,11 +1400,6 @@ fc-list : family | sed 's/,/\n/g' | sort -u (setq vc-make-backup-files t) (setq kept-old-versions 10) (setq kept-new-versions 10) - -;; Improve Emacs responsiveness by deferring fontification during input -;; -;; NOTE: This may cause delayed syntax highlighting in certain cases -(setq redisplay-skip-fontification-on-input t) ``` It is also recommended to read the following articles: diff --git a/init.el b/init.el index 7642ad7..ad18a40 100644 --- a/init.el +++ b/init.el @@ -261,6 +261,12 @@ window-divider-default-places t window-divider-default-right-width 1) +;;; Fontification + +;; Disable fontification during user input to reduce lag in large buffers. +;; Also helps marginally with scrolling performance. +(setq redisplay-skip-fontification-on-input t) + ;;; Scrolling ;; Enables faster scrolling. This may result in brief periods of inaccurate