]> git.eshelyaron.com Git - emacs.git/commit
Add image-auto-resize defcustoms to image-mode.el
authorJuri Linkov <juri@linkov.net>
Mon, 20 Apr 2020 23:42:16 +0000 (02:42 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 20 Apr 2020 23:42:16 +0000 (02:42 +0300)
commita64da75961fbce7dc071af37058de710bb13c26e
treed9fb5d483a42b00bd56b8b9abf4d79b6a37d1a41
parent692ad40539805e435a16b90067fa5917e4fea9f8
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
doc/emacs/files.texi
etc/NEWS
lisp/image-mode.el