all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Meulien <cimosque@free.fr>
Subject: Re: emacs interface for the unix file(1) command
Date: 09 Oct 2003 23:27:24 +0200	[thread overview]
Message-ID: <m28ynuqeyr.fsf@clarinde.localdomain> (raw)
In-Reply-To: m3llrutaar.fsf@tfkp14.physik.uni-erlangen.de

Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> wrote:

> Is there also something that allows me to "do the right thing"
> according to the output of file?

Use `dired-do-shell-command' which is binded to the `!' key. For
example,

 ! file ? | grep PostScript - && gv ? RET

will open the current file with GhostView if and only if it is a
PostScript file; It works with list of files when using the process
mark.

Here `dired-aux' needs to be loaded.
-- 
Matthias

      reply	other threads:[~2003-10-09 21:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09 14:17 emacs interface for the unix file(1) command Roland Winkler
2003-10-09 15:59 ` Matthias Meulien
2003-10-09 20:39   ` Roland Winkler
2003-10-09 21:27     ` Matthias Meulien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28ynuqeyr.fsf@clarinde.localdomain \
    --to=cimosque@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.