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