unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: disabling doc-view mode
Date: Thu, 18 Oct 2012 21:18:06 -0600	[thread overview]
Message-ID: <k5qgos$gps$2@ger.gmane.org> (raw)
In-Reply-To: <jwvvcewpxon.fsf-monnier+gnu.emacs.help@gnu.org>

On 9/29/12 11:09 AM, Stefan Monnier wrote:
>> 	(delete '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)
>
> This is pretty brittle.  Rather than try to "remove behavior" it's often
> easier to add behavior:
>
>    (add-to-list 'auto-mode-alist '("\\.ps\\'" . ps-mode))

Or:

(setq auto-mode-alist
       (delq (rassq 'doc-view-mode auto-mode-alist) auto-mode-alist))

> You can also use M-x find-file-literally RET.  Or of course use C-c C-c
> to switch from doc-view-mode to the "other" mode (ps-mode,
> fundamental-mode, ...).

-- 
Kevin Rodgers
Denver, Colorado, USA




      parent reply	other threads:[~2012-10-19  3:18 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
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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='k5qgos$gps$2@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).