mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(ui): do not enable pixel-scroll-precision-mode on startup
It sometimes causes a long lock-up of Emacs. I believe this is due to a known issue where the mode can cause excessive garbage collection while scrolling, combined with my use of gcmh which prevents GC while actively using Emacs. Hence my theory is that pixel scrolling is causing tons of memory to be consumed, but gcmh prevents the GC from running, until it hits a tipping point where it GCs hundreds of megabytes of memory. Or, that's my theory at least :P
This commit is contained in:
@@ -38,10 +38,7 @@
|
||||
(pixel-scroll-precision-mode -1)
|
||||
(setq scroll-margin siren-pixel-scroll--original-scroll-margin)
|
||||
(setq scroll-preserve-screen-position
|
||||
siren-pixel-scroll--original-scroll-preserve-screen-position))))
|
||||
|
||||
:config
|
||||
(siren-pixel-scroll-mode +1)))
|
||||
siren-pixel-scroll--original-scroll-preserve-screen-position))))))
|
||||
|
||||
(provide 'siren-pixel-scroll)
|
||||
;;; siren-pixel-scroll.el ends here
|
||||
|
||||
Reference in New Issue
Block a user