Enable PDF smooth scrolling

This commit is contained in:
coolneng 2025-04-01 14:21:53 +02:00
parent 84d941ed62
commit 826b27a621
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 6 additions and 0 deletions

View File

@ -114,3 +114,5 @@
(pixel-scroll-precision-mode) (pixel-scroll-precision-mode)
;; Restore previous session on startup ;; Restore previous session on startup
(add-hook 'window-setup-hook #'doom/quickload-session) (add-hook 'window-setup-hook #'doom/quickload-session)
;; Enable PDF smooth scrolling
(add-hook 'pdf-tools-enabled-hook 'pdf-view-roll-minor-mode)

View File

@ -30,3 +30,7 @@
(package! os1-theme :recipe (:host github :repo "sashimacs/os1-theme")) (package! os1-theme :recipe (:host github :repo "sashimacs/os1-theme"))
;; Move buffer while maintaining cursor centered ;; Move buffer while maintaining cursor centered
(package! centered-cursor-mode) (package! centered-cursor-mode)
;; Use the fork of pdf-tools with smooth scrolling
(unpin! pdf-tools)
(package! pdf-tools :recipe (:host github :repo "aikrahguzar/pdf-tools" :branch "child-frame-preview"))
(package! image-roll :recipe (:host github :repo "dalanicolai/image-roll.el"))