--- Begin Message ---
Subject: |
24.3.50; [PATCH] Add some keybindings for doc-view-mode |
Date: |
Thu, 26 Sep 2013 22:14:54 +0800 |
severity minor
tags patch
This patch adds some keybindings to doc-view-mode:
=== modified file 'lisp/doc-view.el'
*** lisp/doc-view.el 2013-09-18 04:38:49 +0000
--- lisp/doc-view.el 2013-09-26 14:10:57 +0000
***************
*** 405,411 ****
--- 405,415 ----
(define-key map (kbd "RET") 'image-next-line)
;; Zoom in/out.
(define-key map "+" 'doc-view-enlarge)
+ (define-key map "=" 'doc-view-enlarge)
+ (define-key map (kbd "C-x C-+") 'doc-view-enlarge)
+ (define-key map (kbd "C-x C-=") 'doc-view-enlarge)
(define-key map "-" 'doc-view-shrink)
+ (define-key map (kbd "C-x C--") 'doc-view-shrink)
;; Fit the image to the window
(define-key map "W" 'doc-view-fit-width-to-window)
(define-key map "H" 'doc-view-fit-height-to-window)
--
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#15466: 24.3.50; [PATCH] Add some keybindings for doc-view-mode |
Date: |
Thu, 26 Sep 2013 21:08:29 +0200 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
Tassilo Horn <address@hidden> writes:
> Yeah
>
> (define-key map [remap text-scale-adjust] 'doc-view-enlarge)
> (define-key map (kbd "C-x C--") 'doc-view-shrink)
>
> should be equivalent. Well, except that C-x C-0 would also enlarge. It
> wouldn't be bad to have a command to reset to the original size.
I've committed the bindings and added a new command
doc-view-reset-zoom-level in revno 114463 on the trunk. So now all
text-scaling key bindings work appropriately in doc-view buffers.
I'm closing the bug.
Bye,
Tassilo
--- End Message ---