From b344d35dddd70366072f64b9620dbaddc6a4d4a3 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Tue, 11 Aug 2026 11:08:25 -0400 Subject: [PATCH] feat: pdf-view C-j/C-k page navigation --- doom/.config/doom/README.org | 8 +++++++- doom/.config/doom/config.el | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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)