Function: image-transform-fit-to-window
image-transform-fit-to-window is an interactive and byte-compiled
function defined in image-mode.el.gz.
Signature
(image-transform-fit-to-window)
Documentation
Fit the current image to the height and width of the current window.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
(defun image-transform-fit-to-window ()
"Fit the current image to the height and width of the current window."
(interactive nil image-mode)
(setq image-transform-resize 'fit-window)
(image-toggle-display-image))