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

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

Re: How to disable file extension auto-detection or auto-action?


From: Tadeus (Eus) Prastowo
Subject: Re: How to disable file extension auto-detection or auto-action?
Date: Tue, 22 Mar 2011 16:59:25 +0100

Hi Andrea!

On Tue, 2011-03-22 at 13:17 +0100, Andrea Crotti wrote:

> Hi Tadeus (I think you know me :))

Long time no see! :-)

> If the files .bz2 that you want to modify have something unique (like a
> path prefix) you might also add an entry to auto-mode-alist with a
> matching regexp.
> 
> For example
> "bugs.*.bz2$" . fundamental-mode

I put the following in my ~/.emacs as per Emacs wiki[1] and do M-x
load-file ~/.emacs:

(add-to-list 'auto-mode-alist '("\\.bz2\\'" . fundamental-mode))

But, Emacs still decompresses the fake .bz2 file resulting in a blank
screen. So, I think the decompression happens before auto-mode can even
do something.

Thanks.

[1] http://www.emacswiki.org/emacs/AutoModeAlist

-- 
Best regards,
Eus (FSF member #4445)

In this digital era, where computing technology is pervasive, your
freedom depends on the software controlling those computing devices.

Join free software movement today! It is free as in freedom, not as in
free beer!

Join: http://www.fsf.org/




reply via email to

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