Skip to content

Commit afffa5b

Browse files
committed
Add redisplay-skip-fontification-on-input
1 parent 9e7911f commit afffa5b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,11 +1400,6 @@ fc-list : family | sed 's/,/\n/g' | sort -u
14001400
(setq vc-make-backup-files t)
14011401
(setq kept-old-versions 10)
14021402
(setq kept-new-versions 10)
1403-
1404-
;; Improve Emacs responsiveness by deferring fontification during input
1405-
;;
1406-
;; NOTE: This may cause delayed syntax highlighting in certain cases
1407-
(setq redisplay-skip-fontification-on-input t)
14081403
```
14091404

14101405
It is also recommended to read the following articles:

init.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,12 @@
261261
window-divider-default-places t
262262
window-divider-default-right-width 1)
263263

264+
;;; Fontification
265+
266+
;; Disable fontification during user input to reduce lag in large buffers.
267+
;; Also helps marginally with scrolling performance.
268+
(setq redisplay-skip-fontification-on-input t)
269+
264270
;;; Scrolling
265271

266272
;; Enables faster scrolling. This may result in brief periods of inaccurate

0 commit comments

Comments
 (0)