changeset 70892:64154d048eff

Added Thumbnails sub menu under Immediate and started to place `tumme' commands there. I could use some feedback on this change.
author Mathias Dahl <mathias.dahl@gmail.com>
date Wed, 24 May 2006 18:49:20 +0000
parents 96a49e1507ec
children c6ca6d20fb3d
files lisp/dired.el
diffstat 1 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Wed May 24 18:31:36 2006 +0000
+++ b/lisp/dired.el	Wed May 24 18:49:20 2006 +0000
@@ -1338,6 +1338,44 @@
     (define-key map [menu-bar immediate wdired-mode]
       '(menu-item "Edit File Names" wdired-change-to-wdired-mode))
 
+    (define-key dired-mode-map [menu-bar immediate tumme]
+      (cons "Thumbnails" (make-sparse-keymap "tumme")))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-display-thumbs]
+      '(menu-item "Display thumbails for marked files"
+                  tumme-display-thumbs))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-tag-files]
+     '(menu-item "Add tag to marked files"
+                 tumme-tag-files))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-tag-remove]
+     '(menu-item "Remove tag from marked files"
+                 tumme-tag-remove))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-dired-display-image]
+     '(menu-item "Display sized image"
+                 tumme-dired-display-image))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-dired-display-external]
+     '(menu-item "Display image in external viewer"
+                 tumme-dired-display-external))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-dired-comment-files]
+     '(menu-item "Add comment to marked files"
+                 tumme-dired-comment-files))
+    
+    (define-key dired-mode-map
+      [menu-bar immediate tumme tumme-mark-tagged-files]
+     '(menu-item "Find and mark files with a certain tag"
+                 tumme-mark-tagged-files))    
+
     (define-key map [menu-bar regexp]
       (cons "Regexp" (make-sparse-keymap "Regexp")))