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

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

Re: "Text is read-only"... except it isn't... or shouldn't be


From: Eli Zaretskii
Subject: Re: "Text is read-only"... except it isn't... or shouldn't be
Date: Tue, 14 May 2013 09:46:32 +0300

> Date: Mon, 13 May 2013 22:34:34 -0400
> From: ken <gebser@mousecar.com>
> CC: help-gnu-emacs@gnu.org
> 
> > That explains everything, doesn't it?  Your file has a file-name
> > extension that matches some image file, so Emacs enters the Image mode
> > for it, and doesn't let you edit images (because image-editing
> > capabilities are not yet part of Emacs).
> >
> > Solution: remove that extension from auto-mode-alist, and Bob's your
> > uncle.
> 
> Cool.  That's what I want.  So I guess I put something in ~/.emacs... 
> but what?

I don't know what is the file-name extension of that file, so I cannot
give a precise recipe.  Assuming for a moment that its extension is
.png, I see that auto-mode-alist includes this element:

   ("\\.png\\'" . image-mode)

So to remove this, you need to do this:

  (delete '("\\.png\\'" . image-mode) auto-mode-alist)



reply via email to

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