From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: disabling doc-view mode Date: Thu, 18 Oct 2012 21:18:06 -0600 Message-ID: References: <878wdjuqcc.fsf@lion.rapttech.com.au> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350616865 25240 80.91.229.3 (19 Oct 2012 03:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 03:21:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 05:21:11 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 1TP38D-0005cJ-Ow for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 05:20:17 +0200 Original-Received: from localhost ([::1]:46154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP384-0000To-RQ for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2012 23:20:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP37z-0000S3-Bj for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 23:20:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP37w-0005fe-QT for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 23:20:01 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP37w-0005fN-Jp for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 23:20:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TP376-00022p-Op for help-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:19:08 +0200 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2012 05:19:08 +0200 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2012 05:19:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:87323 Archived-At: 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