* Configuring external viewer for document types in Dired
@ 2009-08-27 16:12 Thor376
2009-08-28 12:22 ` Tim X
2009-08-28 13:08 ` Wang Lei
0 siblings, 2 replies; 3+ messages in thread
From: Thor376 @ 2009-08-27 16:12 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuring external viewer for document types in Dired
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
1 sibling, 0 replies; 3+ messages in thread
From: Tim X @ 2009-08-28 12:22 UTC (permalink / raw)
To: help-gnu-emacs
Thor376 <thor376@gmail.com> writes:
> 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.
That is a very old version of emacs. Current version is 23 and has
built-in support for viewing PDF files via doc-view mode.
Tim
--
tcross (at) rapttech dot com dot au
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuring external viewer for document types in Dired
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
1 sibling, 0 replies; 3+ messages in thread
From: Wang Lei @ 2009-08-28 13:08 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-28 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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.