diff options
| author | Vedang Manerikar <ved.manerikar@gmail.com> | 2021-12-31 12:24:46 +0530 |
|---|---|---|
| committer | Vedang Manerikar <ved.manerikar@gmail.com> | 2021-12-31 12:28:52 +0530 |
| commit | 91afc4f87baa39347c033d850b29d36d277e0d69 (patch) | |
| tree | 893530b2adb1435317b8b7de81f4645060725a1a | |
| parent | b0f01a9031cca6d3425ebd43f4e3fc4f5aa266c5 (diff) | |
Use `l` and `r` for backward / forward in history.
`l` and `r` are the conventional bindings for history navigation.
The previous key-bindings `B` and `N` are kept as-is for people who
were used to it.
This is a breaking change because `r` was previously bound to
`revert-buffer`. However, `g` is also bound to `revert-buffer` and is
the conventional binding for `revert` so this should be okay.
Fixes: #43
| -rw-r--r-- | README.org | 2 | ||||
| -rw-r--r-- | lisp/pdf-history.el | 2 | ||||
| -rw-r--r-- | lisp/pdf-view.el | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -366,7 +366,7 @@ PDFView Mode is an Emacs PDF viewer. It displays PDF files as PNG images in Emac | Jump to Occur Line | ~RETURN~ | | Pick a Link and Jump | ~F~ | | Incremental Search in Links | ~f~ | -| History Back / Forwards | ~B~ / ~N~ | +| History Back / Forwards | ~l~ / ~r~ | | Display Outline | ~o~ | | Jump to Section from Outline | ~RETURN~ | | Jump to Page | ~M-g g~ | diff --git a/lisp/pdf-history.el b/lisp/pdf-history.el index 2d02d68..e380cf5 100644 --- a/lisp/pdf-history.el +++ b/lisp/pdf-history.el @@ -40,6 +40,8 @@ (let ((kmap (make-sparse-keymap))) (define-key kmap (kbd "B") #'pdf-history-backward) (define-key kmap (kbd "N") #'pdf-history-forward) + (define-key kmap (kbd "l") #'pdf-history-backward) + (define-key kmap (kbd "r") #'pdf-history-forward) kmap) "Keymap used in `pdf-history-minor-mode'.") diff --git a/lisp/pdf-view.el b/lisp/pdf-view.el index 87a03a9..70c2ee4 100644 --- a/lisp/pdf-view.el +++ b/lisp/pdf-view.el @@ -284,7 +284,6 @@ regarding display of the region in the later function.") ;; Reconvert (define-key map (kbd "C-c C-c") 'doc-view-mode) (define-key map (kbd "g") 'revert-buffer) - (define-key map (kbd "r") 'revert-buffer) ;; Region (define-key map [down-mouse-1] 'pdf-view-mouse-set-region) (define-key map [M-down-mouse-1] 'pdf-view-mouse-set-region-rectangle) |
