Review local map `pdf-tools' key bindings and add a table

This commit is contained in:
Gerard Vermeulen 2024-02-07 11:03:11 +01:00
parent 18c8cd3e53
commit eb879a74b3

View File

@ -2055,7 +2055,9 @@ annotate [[https://en.wikipedia.org/wiki/PDF][PDF]] files. It also exploits the
files produced with LaTeX to the original LaTeX sources. In order to use
[[https://github.com/vedang/pdf-tools][pdf-tools]], you have to type {{{kbd(M-x pdf-tools-install)}}} after installation
of [[https://github.com/vedang/pdf-tools][pdf-tools]] from [[https://melpa.org/][MELPA]] or after each update of [[https://github.com/freedesktop/poppler][poppler]] to build or rebuild the
=epdfinfo= executable that serves the [[https://en.wikipedia.org/wiki/PDF][PDF]] files to Emacs.
=epdfinfo= executable that serves the [[https://en.wikipedia.org/wiki/PDF][PDF]] files to Emacs. Table
[[tab:pdf-tools-commands-and-bindings]] lists important local map ~pdf-tools~ key
bindings.
#+caption[Setup =pdf-tools=]:
#+caption: Setup =pdf-tools=.
@ -2068,9 +2070,7 @@ of [[https://github.com/vedang/pdf-tools][pdf-tools]] from [[https://melpa.org/]
(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).
(keymap-set pdf-outline-minor-mode-map "o" nil)
;; The `image-save' key binding is now "i o".
(keymap-set pdf-outline-minor-mode-map "O" #'pdf-outline))
(with-eval-after-load 'pdf-view
@ -2078,6 +2078,20 @@ of [[https://github.com/vedang/pdf-tools][pdf-tools]] from [[https://melpa.org/]
pdf-view-use-scaling (eq system-type 'darwin))))
#+end_src
#+attr_latex: :booktabs yes :float table
#+caption[Pdf-tools commands with key bindings]:
#+caption: Pdf-tools commands with key bindings.
#+name: tab:pdf-tools-commands-and-bindings
|---------------------------------+--------------|
| command | key binding |
|---------------------------------+--------------|
| *pdf-outline* | {{{kbd(o)}}} |
| *pdf-outline* | {{{kbd(O)}}} |
| *pdf-view-fit-height-to-window* | {{{kbd(H)}}} |
| *pdf-view-fit-width-to-window* | {{{kbd(W)}}} |
|---------------------------------+--------------|
* Writing
:PROPERTIES:
:CUSTOM_ID: sec:writing