all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: disabling doc-view mode
Date: Fri, 04 Dec 2009 14:05:01 -0500	[thread overview]
Message-ID: <jwv638msgt8.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: hfb7g8$d2g$1@news.sap-ag.de

>>> 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	other threads:[~2009-12-04 19:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04  7:54 disabling doc-view mode Tim X
2009-12-04  8:03 ` Klaus Straubinger
2009-12-04 11:33   ` Tim X
2009-12-04 13:37 ` Tassilo Horn
     [not found] ` <mailman.12187.1259933898.2239.help-gnu-emacs@gnu.org>
2009-12-04 14:48   ` Klaus Straubinger
2009-12-04 19:05     ` Stefan Monnier [this message]
2009-12-04 22:18   ` Tim X
2012-09-28  3:04   ` martensjd
2012-09-28  7:40     ` Eli Zaretskii
2012-09-28  8:44     ` Peter Dyballa
     [not found]     ` <mailman.9913.1348821910.855.help-gnu-emacs@gnu.org>
2012-09-29 17:09       ` Stefan Monnier
2012-09-29 21:11         ` Peter Dyballa
2012-10-19  3:18         ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv638msgt8.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.