From: Wang Lei <wanglei.198112@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Configuring external viewer for document types in Dired
Date: Fri, 28 Aug 2009 21:08:59 +0800 [thread overview]
Message-ID: <a0a0cf140908280608t1fa1405do398b13e3322c9f9@mail.gmail.com> (raw)
In-Reply-To: <c81c3586-a23c-4fdf-8ec2-6663c3055d80@w41g2000yqb.googlegroups.com>
Perhaps, you can use
(require 'dired-x)
And set dired-guess-shell-alist-user. This is mine:
(setq dired-guess-shell-alist-user '(("\\.pdf$" "xpdf * &")
("\\.py$" "python")
("\\.rar$" "unrar x")
("\\.html?$" "iceweasel")
("\\.rmvb$" "mplayer -framedrop -zoom -really-quiet")))
On 8/28/09, Thor376 <thor376@gmail.com> wrote:
> When I invoke Dired, many files in the list can be read by Emacs.
> That's just fine. But occasionally I see a PDF file in Dired. Is there
> some possibility to configure an external viewer to launch when I
> press Enter on a PDF file in Dired?
>
> My system is Cygwin for Microsoft Windows XP. Emacs is installed from
> the Cygwin repository. I use Emacs version 21.2.1.
>
--
Regards
Lei
prev parent reply other threads:[~2009-08-28 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-27 16:12 Configuring external viewer for document types in Dired Thor376
2009-08-28 12:22 ` Tim X
2009-08-28 13:08 ` Wang Lei [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0a0cf140908280608t1fa1405do398b13e3322c9f9@mail.gmail.com \
--to=wanglei.198112@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).