[Top][All Lists]

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

Re: disabling doc-view mode

From: Stefan Monnier
Subject: Re: disabling doc-view mode
Date: Fri, 04 Dec 2009 14:05:01 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> Does anyone know how to disable/stop doc-view mode from attempting to
>>> convert files when you are in dired and you hit view-file on a ps, pdf,
>>> file?
>> I'm a bit curious.  Which mode would you expect when trying to view an
>> ps/pdf/dvi file in Emacs?

> For PostScript, I would expect ps-mode, of course:
> | (ps-mode)
> | Major mode for editing PostScript with GNU Emacs.

I don't know about you, but that's what I get by default (and I can
then view it with doc-view via C-c C-c).

> Unfortunately, there are no specialized modes for editing PDF and DVI
> files, so I would expect that a default mode for viewing binary files
> is chosen.

You could use find-file-literally for that.  Or of course

  (add-to-list 'auto-mode-alist '("\\.pdf\\'" . fundamental-mode))
  (add-to-list 'auto-mode-alist '("\\.dvi\\'" . fundamental-mode))

-- Stefan

reply via email to

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