diff lisp/dired.el @ 30128:d5957e508d58

(dired-mode-map): Bind `w' to dired-show-file-type. (dired-show-file-type): Add autoload.
author Miles Bader <miles@gnu.org>
date Mon, 10 Jul 2000 07:01:42 +0000
parents d78375eda4e8
children 28542f84f184
line wrap: on
line diff
--- a/lisp/dired.el	Mon Jul 10 07:01:02 2000 +0000
+++ b/lisp/dired.el	Mon Jul 10 07:01:42 2000 +0000
@@ -1,6 +1,6 @@
 ;;; dired.el --- directory-browsing commands
 
-;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000 Free Software Foundation, Inc.
 
 ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>
 ;; Maintainer: FSF
@@ -929,6 +929,7 @@
     (define-key map "d" 'dired-flag-file-deletion)
     (define-key map "e" 'dired-find-file)
     (define-key map "f" 'dired-find-file)
+    (define-key map "w" 'dired-show-file-type)
     (define-key map "\C-m" 'dired-advertised-find-file)
     (define-key map "g" 'revert-buffer)
     (define-key map "h" 'describe-mode)
@@ -2845,6 +2846,12 @@
 If there is already something hidden, make everything visible again.
 Use \\[dired-hide-subdir] to (un)hide a particular subdirectory."
   t)
+
+(autoload 'dired-show-file-type "dired-aux"
+  "Print the type of FILE, according to the `file' command.
+If FILE is a symbolic link and the optional argument DEREF-SYMLINKS is
+true then the type of the file linked to by FILE is printed instead." 
+  t)
 
 (if (eq system-type 'vax-vms)
     (load "dired-vms"))