Tweak pdf-outline-minor-mode-map instead of pdf-view-mode-map

This commit is contained in:
Gerard Vermeulen 2022-04-21 09:34:31 +02:00
parent be5a07892e
commit 98a08a9266

View File

@ -1198,17 +1198,16 @@ rebuild the =epdfinfo= executable that serves the [[https://en.wikipedia.org/wik
;; see the README file.
(pdf-loader-install)
(with-eval-after-load 'pdf-outline
;; Unmask the `image-save' key binding in `pdf-view-mode-map' and
;; in `image-mode-map' (by parenthood).
(define-key pdf-outline-minor-mode-map (kbd "o") nil)
(define-key pdf-outline-minor-mode-map (kbd "O") #'pdf-outline))
(with-eval-after-load 'pdf-view
(custom-set-variables
'(pdf-view-display-size 'fit-page)
`(pdf-view-use-scaling ,(eq system-type 'darwin)))
;; `image-mode-map' is a parent of `pdf-view-mode-map' and
;; `pdf-outline-buffer-mode-map' masks the `image-save' binding in
;; `image-mode-map'.
(define-key pdf-view-mode-map (kbd "o") nil)
(define-key pdf-view-mode-map (kbd "O") #'image-save)
(require 'saveplace-pdf-view nil 'noerror)))
#+end_src