[Top][All Lists]

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

Re: Unloading modes (php-mode, sgml-mode, etc)

From: XheelhookX
Subject: Re: Unloading modes (php-mode, sgml-mode, etc)
Date: Thu, 21 Jun 2007 17:42:54 -0000
User-agent: G2/1.0

On Jun 21, 11:56 am, Tassilo Horn <address@hidden> wrote:
> address@hidden writes:
> > For example every time I emacs a file with a .html extension I get:
> > "----:---F1  test.html            (HTML)--L1--
> > All------------------------------------------------------------------
> > Loading sgml-mode...done"
> > How can I unload sgml-mode through my .emacs file?
> That's correct behavior. Emacs sees that it's a html file, so it loads
> html-mode which is derived from sgml-mode, so it has to load that, too.
> Do I get it right that you want emacs to open all files in fundamental
> mode and don't want to use any other more specific mode?
> Then a solution might be to set `auto-mode-alist' and `magic-mode-alist'
> to nil. But I don't see any sense in refusing to use file specific
> modes...
> Bye,
> Tassilo
> --
> A morning without coffee is like something without something else.

Fantastic.  Yes, I didn't want to load any modes, just fundamental.  I
added these to my .emacs:

(setq auto-mode-alist nil)
(setq magic-mode-alist nil)

and it seems to be working.  Thanks a ton, this has been killing me
for ages.

reply via email to

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