From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!? Date: Thu, 09 Jan 2003 22:58:38 GMT Organization: Genuity, Woburn, MA Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1042153212 29321 80.91.224.249 (9 Jan 2003 23:00:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 23:00:12 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Wled-0007bj-00 for ; Fri, 10 Jan 2003 00:00:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Wlf1-0006Qb-05 for gnu-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2003 18:00:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.utk.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!news.gtei.net!paloalto-snr1.gtei.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 32 Original-X-Trace: /bQNuaAJPlZgDXTEZoODh6RSjZDIu4wUvLuyfHmPswFrab0iQs543/xoBLCsX8730RSIQ+vFHdH+!gS3Yv917eNy2eCu5nb4b3ZgsOBf6qwq3oiXITMHNYL9WBXLS70ZE57mtqCxz/NeQaDzAmieQei5B!1qnfGFUsZV5nOg== Original-X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Original-NNTP-Posting-Date: Thu, 09 Jan 2003 22:58:38 GMT Original-Distribution: world Original-Xref: shelby.stanford.edu gnu.emacs.help:108789 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5317 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5317 In article , Jonathon Isaac Swiderski wrote: >On 7 Jan 2003, Christian Seberino wrote: > >> This works great in .emacs for text mode... >> >> (setq default-major-mode 'text-mode) >> (add-hook 'text-mode-hook 'turn-on-auto-fill) >> >> >> However, this does *not* work for c-mode... >> >> (add-hook 'c-mode-hook 'turn-on-auto-fill) > >What do you mean, "it does not work"? Are you getting an error message >(please post it!), or does it simply appear that nothing is happening? > >Likely nothing is happening --- if c-mode uses the text-mode hook, then Why would c-mode run the text-mode hook? >auto-fill-mode is already on, and emacs is likely finding it rather >difficult to turn on what is already on. But this would accomplish his goal (getting auto-fill turned on in C buffers), so I doubt that he would have written asking for help. -- Barry Margolin, barmar@genuity.net Genuity, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.