diff options
| author | Juri Linkov | 2020-04-21 02:42:16 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-04-21 02:42:16 +0300 |
| commit | a64da75961fbce7dc071af37058de710bb13c26e (patch) | |
| tree | d9fb5d483a42b00bd56b8b9abf4d79b6a37d1a41 /etc | |
| parent | 692ad40539805e435a16b90067fa5917e4fea9f8 (diff) | |
| download | emacs-a64da75961fbce7dc071af37058de710bb13c26e.tar.gz emacs-a64da75961fbce7dc071af37058de710bb13c26e.zip | |
Add image-auto-resize defcustoms to image-mode.el
* lisp/image-mode.el (image-auto-resize)
(image-auto-resize-on-window-resize): New defcustoms.
(image-mode-map): Bind "sb" to image-transform-fit-both.
(image-mode): Set image-transform-resize to image-auto-resize initially.
(image-mode--setup-mode): Add hook on image-auto-resize-on-window-resize.
(image-toggle-display-image): Check if image-transform-resize is t.
(image-transform-properties): Check image-transform-resize for nil and t.
(image-transform-fit-both): New command.
(image-transform-reset): Reset image-transform-resize to image-auto-resize.
* doc/emacs/files.texi (Image Mode): Mention image-auto-resize and
image-auto-resize-on-window-resize.
https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg01160.html
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -3523,9 +3523,12 @@ functions. | |||
| 3523 | *** 'image-mode' now uses this library to automatically rotate images | 3523 | *** 'image-mode' now uses this library to automatically rotate images |
| 3524 | according to the orientation in the Exif data, if any. | 3524 | according to the orientation in the Exif data, if any. |
| 3525 | 3525 | ||
| 3526 | +++ | ||
| 3526 | *** In 'image-mode' the image is resized automatically to fit in window. | 3527 | *** In 'image-mode' the image is resized automatically to fit in window. |
| 3527 | The image will resize upon first display and whenever the window's | 3528 | The image will resize upon first display and whenever the window's |
| 3528 | dimensions change. | 3529 | dimensions change. Two user options 'image-auto-resize' and |
| 3530 | 'image-auto-resize-on-window-resize' can define resizing parameters or | ||
| 3531 | disable auto-resizing. | ||
| 3529 | 3532 | ||
| 3530 | --- | 3533 | --- |
| 3531 | *** New library image-converter. | 3534 | *** New library image-converter. |