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

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

RE: longlines mode


From: Drew Adams
Subject: RE: longlines mode
Date: Thu, 27 Sep 2007 08:29:19 -0700

> 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.






reply via email to

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