[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Configuring external viewer for document types in Dired
From: |
Wang Lei |
Subject: |
Re: Configuring external viewer for document types in Dired |
Date: |
Fri, 28 Aug 2009 21:08:59 +0800 |
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