feat: pdf-view C-j/C-k page navigation

This commit is contained in:
2026-08-11 11:08:25 -04:00
parent f49334c21b
commit b344d35ddd
2 changed files with 14 additions and 2 deletions

View File

@@ -2874,7 +2874,13 @@ Really useful to be able to have a buffer with notes, and another with the offic
;; Hooks ;; Hooks
;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode) ;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode)
(add-hook 'pdf-view-mode-hook #'pdf-view-roll-minor-mode) (add-hook 'pdf-view-mode-hook #'pdf-view-roll-minor-mode)
)
;; Page navigation: C-j next page, C-k previous page
;; Uses pdf-roll-* variants because pdf-view-roll-minor-mode is active —
;; they correctly handle scroll position in continuous layout.
(map! :map pdf-view-mode-map
:n "C-j" #'pdf-roll-next-page
:n "C-k" #'pdf-roll-previous-page))
#+end_src #+end_src
* Custom functions * Custom functions

View File

@@ -1980,7 +1980,13 @@ only injects when the project's context-tag matches current mu4e context."
;; Hooks ;; Hooks
;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode) ;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode)
(add-hook 'pdf-view-mode-hook #'pdf-view-roll-minor-mode) (add-hook 'pdf-view-mode-hook #'pdf-view-roll-minor-mode)
)
;; Page navigation: C-j next page, C-k previous page
;; Uses pdf-roll-* variants because pdf-view-roll-minor-mode is active —
;; they correctly handle scroll position in continuous layout.
(map! :map pdf-view-mode-map
:n "C-j" #'pdf-roll-next-page
:n "C-k" #'pdf-roll-previous-page))
;;Refile in datetree function ;;Refile in datetree function
(defun org-refile-to-datetree (&optional file) (defun org-refile-to-datetree (&optional file)