From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Sat, 20 Jan 2007 19:41:11 +0100 Message-ID: <45B26247.10308@gmail.com> References: <877ivkjb66.fsf@trick.ulm.malte.spiess> <1169314688.257876.13620@q2g2000cwa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169318513 28344 80.91.229.12 (20 Jan 2007 18:41:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Jan 2007 18:41:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 20 19:41:50 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 1H8L9s-00061Q-DM for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jan 2007 19:41:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H8L9s-0007Ii-9d for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Jan 2007 13:41:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H8L9V-0007GZ-9j for help-gnu-emacs@gnu.org; Sat, 20 Jan 2007 13:41:21 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H8L9P-0007CS-6U for help-gnu-emacs@gnu.org; Sat, 20 Jan 2007 13:41:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H8L9O-0007CD-Ko for help-gnu-emacs@gnu.org; Sat, 20 Jan 2007 13:41:14 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H8L9N-00024W-D9 for help-gnu-emacs@gnu.org; Sat, 20 Jan 2007 13:41:13 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:60787 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1H8L9L-0006M8-8m; Sat, 20 Jan 2007 19:41:12 +0100 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) Original-To: Robert Thorpe In-Reply-To: <1169314688.257876.13620@q2g2000cwa.googlegroups.com> X-Antivirus: avast! (VPS 0704-0, 2007-01-18), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1H8L9L-0006M8-8m. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1H8L9L-0006M8-8m d378368851455e1875083730d68f64cc 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:40482 Archived-At: Robert Thorpe wrote: > I think it would be useful is Emacs had some more general hooks than > the ones it has a present, for example:- > progmodes-hook - A hook ran whenever a programming language mode starts > plain-text-modes-hook - A hook ran by text-mode, > paragraph-indent-text-mode etc > formatted-text-modes-hook - A hook ran by tex-mode, nroff-mode, > sgml-mode etc > > This would provide the functionality with less code than hooking many > modes. It would avoid the problem of weird minor modes affecting > temporary buffers and things like M-x snake. > > I might write that sometime, but I can't right now. Did you look at `after-change-major-mode-hook'?