From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Unloading modes (php-mode, sgml-mode, etc) Date: Fri, 22 Jun 2007 23:00:22 -0400 Organization: Symantec Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1182570032 1002 80.91.229.12 (23 Jun 2007 03:40:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2007 03:40:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 23 05:40:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I1wUA-0003aj-Bf for geh-help-gnu-emacs@m.gmane.org; Sat, 23 Jun 2007 05:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1wU9-0003qv-V7 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Jun 2007 23:40:29 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 22 Jun 2007 22:00:22 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) X-Copies-To: never Original-Lines: 19 Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-U3bIvJGGwex+Q95B7Up5htdKYEq2scK9zKS9NwQy82S0UK++Z0+6r56xvcK07qJH2Dgk4fKC/M/w7AA!CFqnUvFueizwQdEc92mBClqJMxPGvTS62k86VTSYc5eQ0dA0Jgn7JjKNTKcbWKZvyJLBFDIPvZpG!jmDPhFdElkNg30lEFNBjh4zcr1/RLhQZsO/r+45iRw== Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:149637 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45225 Archived-At: In article , HeelHook 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 ***