Thanks for the suggestions.
I uploaded a new version to emacs wiki
(http://www.emacswiki.org/cgi-bin/wiki/ExtView) which uses mailcap.
extview-application-associations can be used to override mailcap
handlers (use other application than the one provided by mailcap; do
not use external viewers
On Mon, Apr 03 2006, Ted Zlatanov wrote:
The Gnus code has a mailcap.el file, in which the function
mailcap-parse-mailcaps parses the appropriate files. I would suggest
looking at it to see how your idea can be done correctly. mailcap.el
is in the Emacs Lisp tree as well, if you don't want
or globalff, etc. and
it is passed to an external application if Emacs cannot handle the
content.
At the moment only pdf files are handled, but it is trivial to add
others.
/Tamas
;;; extview.el --- open files with external viewer
;; Copyright (C) 2006 Free Software Foundation, Inc.
;; This file