aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2020-04-21 02:42:16 +0300
committerJuri Linkov2020-04-21 02:42:16 +0300
commita64da75961fbce7dc071af37058de710bb13c26e (patch)
treed9fb5d483a42b00bd56b8b9abf4d79b6a37d1a41 /etc
parent692ad40539805e435a16b90067fa5917e4fea9f8 (diff)
downloademacs-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/NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fe8a8d8775b..1d630a3e91b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
3524according to the orientation in the Exif data, if any. 3524according 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.
3527The image will resize upon first display and whenever the window's 3528The image will resize upon first display and whenever the window's
3528dimensions change. 3529dimensions change. Two user options 'image-auto-resize' and
3530'image-auto-resize-on-window-resize' can define resizing parameters or
3531disable auto-resizing.
3529 3532
3530--- 3533---
3531*** New library image-converter. 3534*** New library image-converter.