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: Andrea Crotti
Subject: Re: How to disable file extension auto-detection or auto-action?
Date: Tue, 22 Mar 2011 22:27:39 +0100

"Tadeus (Eus) Prastowo" <address@hidden> writes:
>
> 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.

Try with:
(add-to-list 'auto-mode-alist '("\\.bz2$" . fundamental-mode))
(it works for me), the other regexp was not correct...

Hope it helped,
bye ;)

-- 
GNU Emacs 24.0.50.3 (x86_64-apple-darwin10.6.0, NS apple-appkit-1038.35)
of 2011-03-05 on ip1-201.halifax.rwth-aachen.de



reply via email to

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