diff --git a/doom/.config/doom/README.org b/doom/.config/doom/README.org index 2a908fe..0da4009 100644 --- a/doom/.config/doom/README.org +++ b/doom/.config/doom/README.org @@ -2874,7 +2874,13 @@ Really useful to be able to have a buffer with notes, and another with the offic ;; Hooks ;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-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 * Custom functions diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index a9e02c1..713c1ce 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -1980,7 +1980,13 @@ only injects when the project's context-tag matches current mu4e context." ;; Hooks ;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-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 (defun org-refile-to-datetree (&optional file)