help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set wrap line at window edge


From: Tyler Smith
Subject: Re: How to set wrap line at window edge
Date: Mon, 07 Sep 2009 13:40:39 -0400
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

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* <gebser@mousecar.com <mailto:gebser@mousecar.com>> 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* <gottlieb@nyu.edu
    <mailto:gottlieb@nyu.edu> <mailto:gottlieb@nyu.edu
    <mailto:gottlieb@nyu.edu>>>

    > wrote:
    >
    >     At Mon, 07 Sep 2009 14:19:30 +0200 bar tomas
    <bartomas@gmail.com <mailto:bartomas@gmail.com>

    >     <mailto:bartomas@gmail.com <mailto:bartomas@gmail.com>>> 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
    >
    >
    >








reply via email to

[Prev in Thread] Current Thread [Next in Thread]