emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc-view and mailcap


From: Juri Linkov
Subject: Re: doc-view and mailcap
Date: Fri, 19 Oct 2007 03:42:25 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>> IMHO, it should do the same as image mode for XPM files: "Type C-c C-c
>> to view the image as an image."  IIUC, this has not been implemented
>> for doc-view yet, so I think we should open them with ps-mode for now.
>
> At least it should be consistent for all files that can both be edited
> (as text) or viewed.

However, there is a difference: some file types are more likely to be
edited (.ps files) while other are not (.pdf and .dvi).  Almost nobody
will want to edit .pdf and .dvi.

So you can put .ps files in ps-mode and doc-view-minor-mode,
and put .pdf/.dvi files in major mode doc-view-mode
(there is no need to put .pdf/.dvi in fundamental-mode).

For a solution how to activate a major/minor mode you could look
in image-mode-maybe.

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]