Function: dired-man

dired-man is an interactive and byte-compiled function defined in dired-x.el.gz.

Signature

(dired-man)

Documentation

Run man on this file.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/dired-x.el.gz
(defvar manual-program) ; from man.el

(defun dired-man ()
  "Run `man' on this file."
  ;; Used also to say: "Display old buffer if buffer name matches filename."
  ;; but I have no idea what that means.
  (interactive)
  (require 'man)
  (let* ((file (dired-get-filename))
         (manual-program (string-replace "*" "%s"
                          (dired-guess-shell-command
                           "Man command: " (list file)))))
    (Man-getpage-in-background file)))