Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion disabling doc-view mode

Received: by 10.66.74.102 with SMTP id s6mr6367985pav.21.1350616808875;
        Thu, 18 Oct 2012 20:20:08 -0700 (PDT)
Path: s9ni23557pbb.0!nntp.google.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From: Kevin Rodgers <kevin.d.rodg...@gmail.com>
Newsgroups: gnu.emacs.help
Subject: Re: disabling doc-view mode
Date: Thu, 18 Oct 2012 21:18:06 -0600
Lines: 22
Approved: help-gnu-em...@gnu.org
Message-ID: <mailman.11261.1350616806.855.help-gnu-emacs@gnu.org>
References: <878wdjuqcc.fsf@lion.rapttech.com.au>	<mailman.12187.1259933898.2239.help-gnu-emacs@gnu.org>	<b022657e-36c4-4ebc-98a9-03c50b772f07@googlegroups.com>	<mailman.9913.1348821910.855.help-gnu-emacs@gnu.org>
	<jwvvcewpxon.fsf-monnier+gnu.emacs.help@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
X-Trace: usenet.stanford.edu 1350616808 21405 208.118.235.17 (19 Oct 2012 03:20:08 GMT)
X-Complaints-To: action@cs.stanford.edu
To: help-gnu-em...@gnu.org
Envelope-to: help-gnu-em...@gnu.org
X-Injected-Via-Gmane: http://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: <jwvvcewpxon.fsf-monnier+gnu.emacs.help@gnu.org>
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-em...@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
	<mailto:help-gnu-emacs-requ...@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-em...@gnu.org>
List-Help: <mailto:help-gnu-emacs-requ...@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-requ...@gnu.org?subject=subscribe>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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