Article View: news.software.readers
Article #126642Re: [slrn] Multiple windows
From: Thomas Schultz
Date: Fri, 20 Jun 2003 10:20
Date: Fri, 20 Jun 2003 10:20
47 lines
2786 bytes
2786 bytes
* notbob [2003-06-19 08:22] :
> slrn's author created an co-editor, jed. It's very powerful. I can
> set the wrap width, but if it has a toggle wrap/nowrap feature, I'm
> not aware of it.
From the FAQ of the editor jed:
<--->
<4> How do I turn on wrap mode or turn it off?
Normally, this is done automatically when JED loads a file with extensions
.txt, .doc, etc... See question 2 for a discussion of how this is done.
To turn on wrap mode for the current buffer, simply press Escape-X and
enter:
text_mode
at the prompt. To turn it off, you must change the mode to something
else. A fairly generic choice is the `no_mode' mode. To do this, press
Escape-X and enter:
no_mode
at the prompt. It is easy to write a function to toggle the mode for
you that can be bound to a key. This one (toggle_wrapmode) will work:
define toggle_wrapmode ()
{
variable mode, modestr;
(modestr, mode) = what_mode ();
if (mode & 1) % test wrap bit
mode = mode & ~(1); % wrap bit on so mask it off
else mode = mode | 1; % wrap bit off so set it.
set_mode (modestr, mode);
}
<--->
jed also has a format_paragraph function (bound to ESC Q in Emacs
mode) that re-wraps a paragraph to the current wrap width.
What more do you need?
--
Thomas Schultz <tststs@gmx.de> News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
Technical Details
Message-ID:
<slrnbf5o06.1e8.tststs@moonlight.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-255-132.arcor-ip.NET!not-for-mailReferences:
<Yg9Ia.25575$Fa6.15419@sccrnsc02> <slrnbf2if5.lb.Faux_Pseudo@fugozi.quasi> <ELcIa.716901$Si4.847348@rwcrnsc51.ops.asp.att.net> <slrnbf2md6.bc2.tim@vegeta.ath.cx> <qpeIa.39015$sm5.44814@rwcrnsc52.ops.asp.att.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnbf5o06.1e8.tststs@moonlight.tststs.ddns.org> Subject: Re: [slrn] Multiple windows Date: Fri, 20 Jun 2003 10:20:54 +0000 From: Thomas Schultz <tststs@gmx.de> References: <Yg9Ia.25575$Fa6.15419@sccrnsc02> <slrnbf2if5.lb.Faux_Pseudo@fugozi.quasi> <ELcIa.716901$Si4.847348@rwcrnsc51.ops.asp.att.net> <slrnbf2md6.bc2.tim@vegeta.ath.cx> <qpeIa.39015$sm5.44814@rwcrnsc52.ops.asp.att.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-255-132.arcor-ip.NET!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 46 NNTP-Posting-Host: dialin-145-254-255-132.arcor-ip.net (145.254.255.132) X-Trace: fu-berlin.de 1056219848 25174236 145.254.255.132 (16 [152]) User-Agent: slrn/0.9.7.4pl2 (Linux)