]> git.eshelyaron.com Git - emacs.git/commitdiff
image-dired: Move menu definitions to keymaps
authorStefan Kangas <stefankangas@gmail.com>
Sat, 24 Sep 2022 16:27:35 +0000 (18:27 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 24 Sep 2022 16:27:35 +0000 (18:27 +0200)
* lisp/image/image-dired.el (image-dired-thumbnail-mode-menu):
* lisp/image/image-dired-dired.el (image-dired-minor-mode-menu):
Delete variables and move menus to...
* lisp/image/image-dired.el (image-dired-thumbnail-mode-map):
* lisp/image/image-dired-dired.el(image-dired-minor-mode-map):
...here.

lisp/image/image-dired-dired.el
lisp/image/image-dired.el

index d4574ca0bc2a36884d0ec9234a0ae83d2d0a212c..3c9e0c5b3fc56f1293d9d859a56631562e797fa9 100644 (file)
@@ -206,11 +206,10 @@ With prefix argument, move ARG lines."
   "C-S-n"  #'image-dired-next-line-and-display
   "C-S-p"  #'image-dired-previous-line-and-display
   "C-S-m"  #'image-dired-mark-and-display-next
-  "<tab>"  #'image-dired-jump-thumbnail-buffer)
+  "<tab>"  #'image-dired-jump-thumbnail-buffer
 
-(easy-menu-define image-dired-minor-mode-menu image-dired-minor-mode-map
-  "Menu for `image-dired-minor-mode'."
-  '("Image-dired"
+  :menu
+  '("Image-Dired"
     ["Display thumb for next file" image-dired-next-line-and-display]
     ["Display thumb for previous file" image-dired-previous-line-and-display]
     ["Mark and display next" image-dired-mark-and-display-next]
index dd434ce6ffb682f059c283ffb1a0414b5de3bd2f..05bd827557ce970dec32c9a3575f8a367232ff04 100644 (file)
@@ -890,10 +890,9 @@ You probably want to use this together with
   "<remap> <beginning-of-buffer>"    #'image-dired-beginning-of-buffer
   "<remap> <end-of-buffer>"          #'image-dired-end-of-buffer
   "<remap> <move-beginning-of-line>" #'image-dired-move-beginning-of-line
-  "<remap> <move-end-of-line>"       #'image-dired-move-end-of-line)
+  "<remap> <move-end-of-line>"       #'image-dired-move-end-of-line
 
-(easy-menu-define image-dired-thumbnail-mode-menu image-dired-thumbnail-mode-map
-  "Menu for `image-dired-thumbnail-mode'."
+  :menu
   '("Image-Dired"
     ["Display image" image-dired-display-thumbnail-original-image]
     ["Display in external viewer" image-dired-thumbnail-display-external]