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

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

Re: longlines mode


From: weber
Subject: Re: longlines mode
Date: Thu, 27 Sep 2007 15:57:32 -0000
User-agent: G2/1.0

On Sep 27, 12:56 pm, weber <hug...@gmail.com> wrote:
> On Sep 27, 12:29 pm, "Drew Adams" <drew.ad...@oracle.com> wrote:
>
> > > i turned on longlines-mode so my lines would be wrapped, and
> > > found out that are not wrapped in the end of a window, but relative to
> > > the variable fill-column.
>
> > > So my question is: is there another mode i can use for wrapping lines
> > > (soft wrap) that is set according to the current window size?
>
> > You can use this trivial command (in any mode):
>
> > (defun foo ()
> >   "Set `fill-column' to width of selected window."
> >   (setq fill-column (window-width))
> >   (message "Fill column is now %d" fill-column))
>
> > You can of course combine that with entry to longlines mode or whatever.
>
> Indeed, inspecting the source i found a variable for doing this:
>
> (setq longlines-wrap-follows-window-size t)
>
> Please pardon me for not seeing it before.
>
> Tks
> weber

I meant "forgive me" instead of pardon me. Rusty english.
Bye
weber



reply via email to

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