From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bar tomas Newsgroups: gmane.emacs.help Subject: Re: How to set wrap line at window edge Date: Tue, 8 Sep 2009 09:30:12 +0100 Message-ID: References: <4AA3F97F.9010008@gmail.com> <4AA40C65.5080409@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6d7ec2865425e04730cc6af X-Trace: ger.gmane.org 1252398741 19758 80.91.229.12 (8 Sep 2009 08:32:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2009 08:32:21 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Allan Gottlieb Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 10:32:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mkw69-0004FA-6h for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 10:30:45 +0200 Original-Received: from localhost ([127.0.0.1]:36013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkw68-0001yF-LB for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 04:30:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mkw5j-0001wc-Mh for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 04:30:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mkw5e-0001w5-Cm for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 04:30:18 -0400 Original-Received: from [199.232.76.173] (port=52107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mkw5e-0001w2-3m for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 04:30:14 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:36899) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mkw5d-0006dk-JJ for help-gnu-emacs@gnu.org; Tue, 08 Sep 2009 04:30:13 -0400 Original-Received: by ewy7 with SMTP id 7so1234502ewy.31 for ; Tue, 08 Sep 2009 01:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=gFnCD8LlrvswCiJIqkO4OBk0fLFf1+hgDubDtf+EpLk=; b=i38kaDUU3/q3xOORnMyiPv9BedvBP7DPQw1OaY0wk+gQg5kkTpgAbreldlDHNy743G sXqbdPa2CYUuleSqX1eV1jftZehr5yLz824vudNYCQJFrPPYi0RjXF+POfSZCiJ3P+7b SqyEDqzkKbejA4igzGryIhGKi8saRzCMjyYcE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=azxux0DThEI9tDobUNNk3MrU3oVAGLDs0mtvUjdyFzw3ExytVnsys7kFY9RenRlHXP fri+fU9EFQe5EcpQZppNrmugB4NAOP9lPEpAo1TGtErMOqI4RWY16yRoCmLnGAwuchpR eKROVQNnwmGET/xqWPz4s541DBRaS+h7cu8gA= Original-Received: by 10.216.87.136 with SMTP id y8mr1744332wee.70.1252398612167; Tue, 08 Sep 2009 01:30:12 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67953 Archived-At: --0016e6d7ec2865425e04730cc6af Content-Type: text/plain; charset=ISO-8859-1 Fabulous! That worked. Thanks a million. On Mon, Sep 7, 2009 at 9:58 PM, Allan Gottlieb wrote: > At Mon, 07 Sep 2009 18:05:03 +0200 bar tomas wrote: > > > Yes! It does say 'Fill' on the mode line ('Org Fill' in fact because I'm > > working with the org mode). > > How do I correct this? > > Here are three ways (with minor variations). > > 1. Right click on the word fill and then uncheck the "auto fill" > option (only affects this buffer). > > 2A. Type "M-x auto-fill-mode" (toggles auto-fill for this buffer) > > 2B. Type "C-u 0 M-x auto-fill-mode" (turns off, not toggle, auto > fill for this buffer). > > 3A. Add this to .emacs (untested), repeating the last line > for each major mode that should not be auto-filled > (defun ken-no-auto-fill () > "Turn off auto filling" > (auto-fill-mode 0)) > (add-hook 'foo-mode-hook 'ken-no-auto-fill) > > 3B. If you have only one major mode of interest, the following is shorter > (add-hook 'foo-mode-hook (lambda () (auto-fill-mode 0))) > > allan > > > --0016e6d7ec2865425e04730cc6af Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Fabulous! That worked. Thanks a million.

On Mon, Sep 7, 2009 at 9:58 PM, Allan Gottlieb <= span dir=3D"ltr"><gottlieb@nyu.edu> wrote:
At Mon, 07 Sep 2009 18:05:03 +0200 bar tomas <bartomas@gmail.com> wrote:

>= ; Yes! =A0It does say 'Fill' on the mode line ('Org Fill' i= n fact because I'm
> working with the org mode).
> How do I correct this?

Here are three ways (with minor variations).

1. =A0Right click on = the word fill and then uncheck the "auto fill"
=A0 =A0option (= only affects this buffer).

2A. Type "M-x auto-fill-mode" (toggles auto-fill for this buf= fer)

2B. Type "C-u 0 M-x auto-fill-mode" (turns off, not t= oggle, auto
=A0 =A0fill for this buffer).

3A. Add this to .emacs = (untested), repeating the last line
=A0 =A0 =A0 for each major mode that should not be auto-filled
=A0 =A0 = =A0 (defun ken-no-auto-fill ()
=A0 =A0 =A0 =A0 "Turn off auto filli= ng"
=A0 =A0 =A0 =A0 (auto-fill-mode 0))
=A0 =A0 =A0 (add-hook &#= 39;foo-mode-hook 'ken-no-auto-fill)

3B. If you have only one major mode of interest, the following is short= er
=A0 =A0 =A0 (add-hook 'foo-mode-hook (lambda () (auto-fill-mode 0= )))

allan



--0016e6d7ec2865425e04730cc6af--