From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: disabling doc-view mode Date: Sat, 29 Sep 2012 13:09:37 -0400 Message-ID: References: <878wdjuqcc.fsf@lion.rapttech.com.au> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348938614 8091 80.91.229.3 (29 Sep 2012 17:10:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2012 17:10:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 29 19:10:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TI0YU-00055Q-NC for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2012 19:10:18 +0200 Original-Received: from localhost ([::1]:47503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI0YP-0005eN-61 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2012 13:10:13 -0400 Original-Received: by 10.66.84.41 with SMTP id v9mr3320155pay.43.1348938579071; Sat, 29 Sep 2012 10:09:39 -0700 (PDT) Original-Path: usenet.stanford.edu!kt20no3356059pbb.1!news-out.google.com!t10ni23595756pbh.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe20.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:/XszrRmr5+whQtS3OLdo8kaMsyg= Original-Lines: 13 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Sat, 29 Sep 2012 17:09:38 UTC X-Received-Bytes: 1210 Original-Xref: usenet.stanford.edu gnu.emacs.help:194660 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86996 Archived-At: > (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)) 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, ...). Stefan