help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: disabling doc-view mode


From: Stefan Monnier
Subject: Re: disabling doc-view mode
Date: Sat, 29 Sep 2012 13:09:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

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


reply via email to

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