When displaying images in Image mode the default seems to be to scale the image to fit completely within the frame. (Or within the document area of the frame to be more precise.) I find this inconvenient for images which are much taller than they are wide.
M-x describe-mode
shows the command increase-image-size
is bound, but many keystrokes may be required to scale the image appropriately. Within image-mode.el I found the command image-transform-fit-to-width
which has the effect I want, but it is not bound. It is defined as follows:
(defun image-transform-fit-to-width ()
"Fit the current image to the width of the current window.
This command has no effect unless Emacs is compiled with
ImageMagick support."
(interactive)
(setq image-transform-resize 'fit-width)
(image-toggle-display-image))
I could bind this in my init.el of course, and may still do, but I think I'd like to find a way to have the images scaled in this way by default. Can it be done?