From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.help Subject: Re: How to set wrap line at window edge Date: Mon, 07 Sep 2009 13:40:39 -0400 Message-ID: <4AA54597.10508@eku.edu> References: <4AA3F97F.9010008@gmail.com> <4AA40C65.5080409@gmail.com> <4AA53345.7080308@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252345398 12338 80.91.229.12 (7 Sep 2009 17:43:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2009 17:43:18 +0000 (UTC) To: bar tomas , Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 07 19:43:11 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 1MkiF9-0001h2-DF for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 19:43:10 +0200 Original-Received: from localhost ([127.0.0.1]:54035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkiF5-0001rK-9k for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Sep 2009 13:43:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkiD0-00015t-NC for help-gnu-emacs@gnu.org; Mon, 07 Sep 2009 13:40:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkiCy-00013L-UE for help-gnu-emacs@gnu.org; Mon, 07 Sep 2009 13:40:54 -0400 Original-Received: from [199.232.76.173] (port=50217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkiCy-00013B-Qe for help-gnu-emacs@gnu.org; Mon, 07 Sep 2009 13:40:52 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:49166) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkiCy-0002dY-1O for help-gnu-emacs@gnu.org; Mon, 07 Sep 2009 13:40:52 -0400 Original-Received: from [127.0.0.1] (really [76.177.51.182]) by cdptpa-omta03.mail.rr.com with ESMTP id <20090907174047957.GKVJ29089@cdptpa-omta03.mail.rr.com>; Mon, 7 Sep 2009 17:40:47 +0000 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:67939 Archived-At: bar tomas wrote: > Many thanks for all your help. > Is there no way of telling emacs to wrap around when it gets to the > end of the window instead of setting the wrap to a fixed column? I > mean the window may be enlarged or reduced and the number of columns > it can pack in varies. > Thanks again. > You could try a function like this: (defun reset-fill-column () (interactive) (set-fill-column (- (window-width) 5))) Bind that to a convenient key, and call it whenever you change the size of the window. There might be a hook you could use to run it automatically every time you change the window size, but I don't know about that. HTH, Tyler > On 9/7/09, *ken* > > wrote: > > "C-7 C-2 C-x f" will wrap at column 72. > > ;put in your ~/.emacs to setup new emacs session to wrap at col 72 > (setq-default fill-column 72) > > > -- > War is a failure of the imagination. > --William Blake > > > > > On 09/07/2009 12:05 PM 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? > > Many thanks > > > > > > > On 9/7/09, *Allan Gottlieb* >> > > > wrote: > > > > At Mon, 07 Sep 2009 14:19:30 +0200 bar tomas > > > > >> wrote: > > > > > > > I think I explained my problem badly. > > > My problem is that although my buffer occupies all the emacs > > window, the > > > lines don't wrap at the windows edge. They wrap quite a > distance > > before (at > > > about half the window). Is there a solution to this? > > > > > > Perhaps you have auto-fill-mode enabled. Do you see the word > > > > "Fill" in the mode line? > > > > allan > > > > > > > >