From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Unloading modes (php-mode, sgml-mode, etc)
Date: Fri, 22 Jun 2007 23:00:22 -0400 [thread overview]
Message-ID: <barmar-EB1651.23002222062007@comcast.dca.giganews.com> (raw)
In-Reply-To: mailman.2510.1182497425.32220.help-gnu-emacs@gnu.org
In article <mailman.2510.1182497425.32220.help-gnu-emacs@gnu.org>,
HeelHook <xheelhookx@gmail.com> wrote:
> I simply cannot find in the documentation how to unload those pesky mode
> libraries that emacs seems to like to load on me: php-mode, sgml-mode, etc.
> Any ideas on what to put in my .emacs file to unload those things? Thanks.
There's no built-in way to do this. You could list all the functions
and variables in the mode and then call unintern on all of them.
Why do you need to do this? What problem does a mode you're not using
cause? Emacs only loads most of those modes if you actually load a
buffer that needs them.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
next parent reply other threads:[~2007-06-23 3:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2510.1182497425.32220.help-gnu-emacs@gnu.org>
2007-06-23 3:00 ` Barry Margolin [this message]
2007-06-21 5:43 Unloading modes (php-mode, sgml-mode, etc) HeelHook
-- strict thread matches above, loose matches on Subject: below --
2007-06-21 5:06 kevfinn
2007-06-21 6:52 ` Tassilo Horn
2007-06-21 8:24 ` Tim X
2007-06-21 15:43 ` XheelhookX
2007-06-21 16:56 ` Tassilo Horn
2007-06-21 17:42 ` XheelhookX
2007-06-21 18:27 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-EB1651.23002222062007@comcast.dca.giganews.com \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).