From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathon Isaac Swiderski Newsgroups: gmane.emacs.help Subject: Re: .emacs can only turn on auto-fill for text-mode *not* c-mode!?!? Date: Thu, 9 Jan 2003 17:37:35 -0500 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1042153645 31289 80.91.224.249 (9 Jan 2003 23:07:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 Jan 2003 23:07:25 +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 18Wllk-00088Q-00 for ; Fri, 10 Jan 2003 00:07:24 +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 18WlaA-00052P-01 for gnu-help-gnu-emacs@m.gmane.org; Thu, 09 Jan 2003 17:55:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsxfer.eecs.umich.edu!news.itd.umich.edu!mspacman.gpcc.itd.umich.edu!jonswid Original-Newsgroups: gnu.emacs.help X-X-Sender: jonswid@mspacman.gpcc.itd.umich.edu In-Reply-To: Original-Lines: 28 Original-NNTP-Posting-Host: 141.211.2.210 Original-X-Trace: news.itd.umich.edu 1042151856 141.211.2.210 (Thu, 09 Jan 2003 17:37:36 EST) Original-NNTP-Posting-Date: Thu, 09 Jan 2003 17:37:36 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:108788 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:5318 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5318 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 auto-fill-mode is already on, and emacs is likely finding it rather difficult to turn on what is already on. -- Jonathon Isaac Swiderski \\ dangercat-20@dangercat.net cs.oberlin.edu/~jswiders \\ www.dangercat.net/resume a cow is of bovine ilk one end is moo the other milk