Tweak pdf-outline-minor-mode-map instead of pdf-view-mode-map
This commit is contained in:
parent
be5a07892e
commit
98a08a9266
13
README.org
13
README.org
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user