[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabling doc-view mode

From: Kevin Rodgers
Subject: Re: disabling doc-view mode
Date: Thu, 18 Oct 2012 21:18:06 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv: Gecko/20120306 Thunderbird/3.1.20

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))


(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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]