From 0dc5b2fd9ac65afda4c9ce54cd1271b79e33f7ef Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Fri, 21 Mar 2025 22:45:14 +0100 Subject: [PATCH] Pixel scrolling? --- config.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config.org b/config.org index bac7258..3fca141 100644 --- a/config.org +++ b/config.org @@ -640,21 +640,20 @@ The "global modeline" [[https://github.com/eki3z/mini-echo.el][package]], that d * Pixel-scrolling ** Native This doesn-t work for me for now, very laggy and inconsistent -#+begin_src emacs-lispp +#+begin_src emacs-lisp ;;; Scrolling. ;; Good speed and allow scrolling through large images (pixel-scroll). ;; Note: Scroll lags when point must be moved but increasing the number ;; of lines that point moves in pixel-scroll.el ruins large image ;; scrolling. So unfortunately I think we'll just have to live with ;; this. -(setq gc-cons-threshold #x40000000) (setq fast-but-imprecise-scrolling t) ; No (less) lag while scrolling lots. -(setq jit-lock-defer-time 0) ; Just don't even fontify if we're still catching up on user input. -(pixel-scroll-mode) +(pixel-scroll-precision-mode 1) (setq pixel-dead-time 0) ; Never go back to the old scrolling behaviour. (setq pixel-resolution-fine-flag t) ; Scroll by number of pixels instead of lines (t = frame-char-height pixels). (setq mouse-wheel-scroll-amount '(1)) ; Distance in pixel-resolution to scroll each mouse wheel event. (setq mouse-wheel-progressive-speed t) ; Progressive speed is too fast for me. +(setq redisplay-skip-fortification-on-input t) #+end_src * PDF Tools [[https://github.com/vedang/pdf-tools][pdf-tools]] is a replacement of DocView for viewing PDF files inside Emacs. It uses the poppler library, which also means that ‘pdf-tools’ can by used to modify PDFs. I use to disable ‘display-line-numbers-mode’ in ‘pdf-view-mode’ because line numbers crash it.