From mboxrd@z Thu Jan 1 00:00:00 1970 Path: quimby.gnus.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Two new entries in menu-bar's Tools menu Date: Sun, 17 Feb 2002 15:50:28 -0700 (MST) Message-ID: <200202172250.g1HMoSC12911@santafe.santafe.edu> References: <557-Wed13Feb2002214610+0200-eliz@is.elta.co.il> <5xeljp5aq7.fsf@kfs2.cua.dk> <200202151036.g1FAarL07333@santafe.santafe.edu> <200202162156.g1GLu0x09942@aztec.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: quimby2.netfonds.no X-Trace: quimby2.netfonds.no 1013987090 25372 195.204.10.66 (17 Feb 2002 23:04:50 GMT) X-Complaints-To: usenet@quimby2.netfonds.no NNTP-Posting-Date: 17 Feb 2002 23:04:50 GMT Cc: emacs-devel@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby2.netfonds.no with esmtp (Exim 3.12 #1 (Debian)) id 16caMT-0006b8-00 for ; Mon, 18 Feb 2002 00:04:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ca9j-0005ZL-00; Sun, 17 Feb 2002 17:51:39 -0500 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16ca8b-0005SL-00; Sun, 17 Feb 2002 17:50:30 -0500 Original-Received: from santafe.santafe.edu (santafe [192.12.12.2]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g1HMoTu17212; Sun, 17 Feb 2002 15:50:29 -0700 (MST) Original-Received: (from rms@localhost) by santafe.santafe.edu (8.10.2+Sun/8.9.3) id g1HMoSC12911; Sun, 17 Feb 2002 15:50:28 -0700 (MST) X-Authentication-Warning: santafe.santafe.edu: rms set sender to rms@santafe using -f Original-To: abraham@dina.kvl.dk In-reply-to: (message from Per Abrahamsen on Sun, 17 Feb 2002 11:10:14 +0100) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: quimby.gnus.org gmane.emacs.devel:1275 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1275 (defcustom text-mode-hook nil "Normal hook run when entering Text mode and many related modes." :type 'hook :options '(turn-on-auto-fill flyspell-mode) :group 'data) When you customize text-mode-hook, turn-on-auto-fill and flyspell-mode will be listed as checkbox options. Now I understand. Note that the function flyspell-mode is not the right one to use here, just as the function auto-fill-mode is not right here. We made a separate function turn-on-auto-fill which does not ever turn the mode off. We ought to make a similar function for turning on flyspell. The :options above give us a "for each major mode, select which minor modes to turn on. Yes, but it only lists a couple of minor modes that we specifically think that many people would want. So it is not a very general facility, or else you could say, it is not very much fleshed-out. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel