From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: How to apply a minor mode to all buffers Date: Mon, 22 Jan 2007 07:55:14 +0100 Message-ID: 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=us-ascii X-Trace: sea.gmane.org 1169451643 18975 80.91.229.12 (22 Jan 2007 07:40:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 07:40:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 22 08:40:40 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 1H8tn8-0006dx-R3 for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jan 2007 08:40:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H8tn7-0005vD-Rn for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Jan 2007 02:40:33 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 12 Original-X-Trace: individual.net wZOfCCxKgtnpjxMLd4eXSAp8V3iJsvhgcX73kYX8nx0CKXqqz0 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (windows-nt) Cancel-Lock: sha1:Cm89Z5YLskJqeiwMqWS7LXWEUQE= Original-Xref: shelby.stanford.edu gnu.emacs.help:144896 Original-To: help-gnu-emacs@gnu.org 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:40500 Archived-At: "Robert Thorpe" writes: > 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 That would certainly be possible but it would require each mode-writer to provide a "category", or there would have to be some kind of list with the mapping from category to mode.