From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.help Subject: Re: line wrap problem Date: Thu, 20 Mar 2003 00:42:38 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <288ea.88581$a41.26492@news01.bloor.is.net.cable.rogers.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1048121160 18406 80.91.224.249 (20 Mar 2003 00:46:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 00:46:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 20 01:45:56 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 18voBw-0004mI-00 for ; Thu, 20 Mar 2003 01:45:56 +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 18voBn-0006mX-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2003 19:45:47 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!newsfeed.telusplanet.net!newsfeed.on.tac.net!newsfeeds-atl1!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail Original-From: Le Wang Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Followup-To: comp.emacs Original-Lines: 29 User-Agent: KNode/0.7.1 Original-NNTP-Posting-Host: 24.192.199.86 Original-X-Complaints-To: abuse@rogers.com Original-X-Trace: news01.bloor.is.net.cable.rogers.com 1048120958 24.192.199.86 (Wed, 19 Mar 2003 19:42:38 EST) Original-NNTP-Posting-Date: Wed, 19 Mar 2003 19:42:38 EST Original-Xref: shelby.stanford.edu comp.emacs:78291 gnu.emacs.help:111237 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:7737 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7737 S. Eng wrote: > 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) `setq' shouldn't be used for hooks, use add-hook instead (see below). > (setq current-fill-column 72) `current-fill-column' is not a lisp variable for me. Does this work for you? (setq default-major-mode 'text-mode) (add-hook 'text-mode-hook #'(lambda () (setq fill-column 72) (auto-fill-mode 1))) Again, if you insert text in the middle of the paragraph, you'll have to press to refill manually -- Le