(use-package pdf-tools
:ensure t
:init
(add-hook 'after-init-hook 'pdf-tools-install)
:config
(progn
(setq pdf-view-continuous nil
pdf-view-use-imagemagick nil
)
)
:bind (:map pdf-view-mode-map
("j" . 'pdf-view-scroll-up-or-next-page)
("k" . 'pdf-view-scroll-down-or-previous-page)
("C-n" . 'pdf-view-scroll-up-or-next-page)
("C-p" . 'pdf-view-scroll-down-or-previous-page)
)
在macOS进行如上按键绑定时,调用同样的方法,凡是单个按键的绑定如j/k,调用时都会有一定的延时,C-p组合键则正常。在windows的wsl,或者msys上没有这个情况,有道友遇到过么