Skip to content

Commit ca2b792

Browse files
committed
[emacs] tweaks to improve scroll perf
1 parent 46cecd8 commit ca2b792

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

emacs/.config/emacs/early-init.el

+7
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@
217217
;; (add-to-list 'default-frame-alist '(internal-border-width . 10))
218218
;; (add-to-list 'default-frame-alist '(ns-appearance . dark))
219219

220+
;; Perf: fontify when idle, speed ups scroll
221+
;; https://www.reddit.com/r/emacs/comments/14c4l8j/comment/joku4bh/
222+
;; https://codeberg.org/ideasman42/emacs-jit-lock-stealth-progress
223+
(setq jit-lock-stealth-time 1.25)
224+
(setq jit-lock-stealth-nice 0.5) ;; Seconds between font locking.
225+
(setq jit-lock-chunk-size 4096)
226+
220227
;; Bump up gc threshold until emacs startup
221228
(setq gc-cons-threshold most-positive-fixnum gc-cons-percentage 0.6)
222229
(add-hook 'emacs-startup-hook

0 commit comments

Comments
 (0)