From 188637bee61db02d9940d0876086df3b57f9f65c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 1 Jul 2025 14:15:25 -0500 Subject: adding continuous scroll code in custom + configuring in pdf-config --- modules/pdf-config.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/pdf-config.el b/modules/pdf-config.el index 99fe30c5..d1047c84 100644 --- a/modules/pdf-config.el +++ b/modules/pdf-config.el @@ -17,12 +17,13 @@ (pdf-tools-install :no-query) ;; automatically compile on first launch :bind (:map pdf-view-mode-map - ("M" . pdf-view-midnight-minor-mode) + ("M" . pdf-view-midnight-minor-mode) ("m" . bookmark-set) ("C-=" . pdf-view-enlarge) ("C--" . pdf-view-shrink) ("z" . (lambda () (interactive) (cj/open-file-with-command "zathura"))) - ("e" . (lambda () (interactive) (cj/open-file-with-command "evince"))) + ("e" . (lambda () (interactive) (cj/open-file-with-command "evince"))) + ("C-c l" . org-store-link) ("j" . pdf-view-next-line-or-next-page) ("k" . pdf-view-previous-line-or-previous-page))) @@ -49,5 +50,14 @@ :config (setq pdf-view-restore-filename (concat user-emacs-directory "/.pdf-view-restore"))) +;; --------------------------- PDF Continuous Scroll --------------------------- + +;; provides continuous scrolling of PDF documents in PDF View +(use-package pdf-continuous-scroll-mode + :ensure nil ;; in custom folder + :after pdf-tools + :hook (pdf-view-mode . pdf-continuous-scroll-mode) + :load-path "custom/pdf-continuous-scroll-mode.el") + (provide 'pdf-config) ;;; pdf-config.el ends here -- cgit v1.2.3