From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: turn-on-*-mode Date: Tue, 16 May 2006 23:45:54 -0400 Message-ID: References: <4469D3B6.2040904@student.lu.se> <85odxyugsx.fsf@lola.goethe.zz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1147837646 29880 80.91.229.2 (17 May 2006 03:47:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 17 May 2006 03:47:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 17 05:47:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FgD0B-0002WD-JT for ged-emacs-devel@m.gmane.org; Wed, 17 May 2006 05:47:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgD0B-0005eD-3q for ged-emacs-devel@m.gmane.org; Tue, 16 May 2006 23:47:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgCyy-0005Cm-Ro for emacs-devel@gnu.org; Tue, 16 May 2006 23:45:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgCyy-0005CK-Cq for emacs-devel@gnu.org; Tue, 16 May 2006 23:45:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgCyx-0005C7-Pe for emacs-devel@gnu.org; Tue, 16 May 2006 23:45:55 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgD1k-000896-7Y for emacs-devel@gnu.org; Tue, 16 May 2006 23:48:48 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FgCyw-0001Y1-HL; Tue, 16 May 2006 23:45:54 -0400 Original-To: David Kastrup In-reply-to: <85odxyugsx.fsf@lola.goethe.zz> (message from David Kastrup on Tue, 16 May 2006 17:31:58 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54620 Archived-At: Or maybe we should have something like (defun add-hook-turn-on (hook mode) (add-hook hook `(lambda nil (,mode 1)))) So that one can write (add-hook-turn-on 'text-mode-hook 'auto-fill-mode) This would be an improvement, if just using the minor mode function is not acceptable (see the following message). But even better would be a feature that makes it easy to use Custom to specify minor modes to enable in any given major mode.