From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edward Dodge Newsgroups: gmane.emacs.help Subject: Re: line wrap problem Date: 18 Mar 2003 20:25:57 -0600 Organization: Confabulation Consulting 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 1048041156 3576 80.91.224.249 (19 Mar 2003 02:32:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2003 02:32:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 03:32:35 2003 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 18vTNb-0000vY-00 for ; Wed, 19 Mar 2003 03:32:35 +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 18vTLb-0003tY-02 for gnu-help-gnu-emacs@m.gmane.org; Tue, 18 Mar 2003 21:30:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: cdm-66-73-146-pine.cox-internet.com Original-X-Trace: quimby.gnus.org 1048040796 13137 66.233.73.146 (19 Mar 2003 02:26:36 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 19 Mar 2003 02:26:36 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.30 Original-Xref: shelby.stanford.edu comp.emacs:78264 gnu.emacs.help:111199 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:7699 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7699 ngse@yahoo.com (S. Eng) writes: > Hi > > I want to line wrap at column 72. > I have the following lines in my .emacs > > (setq default-major-mode 'text-mode) > (setq text-mode-hook 'turn-on-auto-fill) Try this instead: (add-hook 'text-mode-hook 'turn-on-auto-fill) Or if you have a newer version of EMACS, and want to have the auto-fill even if you're in the middle of a paragraph: (add-hook 'text-mode-hook 'refill-mode) > (setq current-fill-column 72) -- Edward Dodge /Confabulation Consulting/