Skip to content

Commit 1f76a16

Browse files
committed
* lisp/image-mode.el (image-mode-map): Update menu items.
* lisp/image-mode.el (image-mode-map): Move "Fit Image to Window (Best Fit)" higher. Add "Zoom In" (image-increase-size), "Zoom Out" (image-decrease-size) and "Rotate Clockwise" (image-rotate). Use name "Set Rotation..." for image-transform-set-rotation. Swap "Next Image" and "Previous Image". Swap "Next Frame" and "Previous Frame".
1 parent f0e1bf5 commit 1f76a16

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

lisp/image-mode.el

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,22 @@ call."
505505
"--"
506506
["Fit Frame to Image" image-mode-fit-frame :active t
507507
:help "Resize frame to match image"]
508+
["Fit Image to Window (Best Fit)" image-transform-fit-both
509+
:help "Resize image to match the window height and width"]
508510
["Fit to Window Height" image-transform-fit-to-height
509511
:help "Resize image to match the window height"]
510512
["Fit to Window Width" image-transform-fit-to-width
511513
:help "Resize image to match the window width"]
512-
["Fit to Window Height and Width" image-transform-fit-both
513-
:help "Resize image to match the window height and width"]
514+
["Zoom In" image-increase-size
515+
:help "Enlarge the image"]
516+
["Zoom Out" image-decrease-size
517+
:help "Shrink the image"]
514518
["Set Scale..." image-transform-set-scale
515519
:help "Resize image by specified scale factor"]
516-
["Rotate Image..." image-transform-set-rotation
520+
["Rotate Clockwise" image-rotate
517521
:help "Rotate the image"]
522+
["Set Rotation..." image-transform-set-rotation
523+
:help "Set rotation angle of the image"]
518524
["Reset Transformations" image-transform-reset
519525
:help "Reset all image transformations"]
520526
"--"
@@ -524,10 +530,10 @@ call."
524530
(image-dired default-directory))
525531
:active default-directory
526532
:help "Show thumbnails for all images in this directory"]
527-
["Next Image" image-next-file :active buffer-file-name
528-
:help "Move to next image in this directory"]
529533
["Previous Image" image-previous-file :active buffer-file-name
530534
:help "Move to previous image in this directory"]
535+
["Next Image" image-next-file :active buffer-file-name
536+
:help "Move to next image in this directory"]
531537
["Copy File Name" image-mode-copy-file-name-as-kill
532538
:active buffer-file-name
533539
:help "Copy the current file name to the kill ring"]
@@ -565,10 +571,10 @@ call."
565571
["Reset Animation Speed" image-reset-speed
566572
:active image-multi-frame
567573
:help "Reset the speed of this image's animation"]
568-
["Next Frame" image-next-frame :active image-multi-frame
569-
:help "Show the next frame of this image"]
570574
["Previous Frame" image-previous-frame :active image-multi-frame
571575
:help "Show the previous frame of this image"]
576+
["Next Frame" image-next-frame :active image-multi-frame
577+
:help "Show the next frame of this image"]
572578
["Goto Frame..." image-goto-frame :active image-multi-frame
573579
:help "Show a specific frame of this image"]
574580
))

0 commit comments

Comments
 (0)