Re: line length

2001-11-15 Thread Vincent Lefevre

On Thu, Nov 15, 2001 at 13:43:32 +, Dave Pearson wrote:
> I can't see anything wrong with the quoting. Perhaps you're suggesting that
> I should add an extra newline after my attribution line? That seems like a
> reasonable idea.
> 
> I'd assumed that we were talking about the quoting of the actual content of
> an email here.

I think that sticking the attribution line to the content is a good idea.
It is still readable, and we avoid to waste an empty line. Ditto for snip
tags, e.g.

> blah blah blah blah blah blah blah blah blah blah blah blah
> blah blah blah blah blah blah blah blah blah blah blah blah
> blah blah blah blah blah blah blah blah blah blah blah blah
[snip]

After a few quote levels, the quoted text *may* still need to be present
and need to be reformated.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-15 Thread Dave Pearson

On Thu, Nov 15, 2001 at 12:02:53PM +0100, Vincent Lefevre wrote:
> On Thu, Nov 15, 2001 at 08:46:16 +, Dave Pearson wrote:
>
> > On Wed, Nov 14, 2001 at 06:40:37PM +0100, Vincent Lefevre wrote:
> >
> > > Yes, but some users generate such quoting.
> > 
> > Obviously, otherwise it wouldn't exist. See above and below. I fix it on
> > the rare occasion when I encounter it.
> 
> And *you* did generate such quoting. From your message:

I can't see anything wrong with the quoting. Perhaps you're suggesting that
I should add an extra newline after my attribution line? That seems like a
reasonable idea.

I'd assumed that we were talking about the quoting of the actual content of
an email here.

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: line length

2001-11-15 Thread Vincent Lefevre

On Thu, Nov 15, 2001 at 08:46:16 +, Dave Pearson wrote:
> On Wed, Nov 14, 2001 at 06:40:37PM +0100, Vincent Lefevre wrote:
> > Yes, but some users generate such quoting.
> 
> Obviously, otherwise it wouldn't exist. See above and below. I fix it on the
> rare occasion when I encounter it.

And *you* did generate such quoting. From your message:

On Wed, Nov 14, 2001 at 06:40:37PM +0100, Vincent Lefevre wrote:
> On Wed, Nov 14, 2001 at 17:10:24 +, Dave Pearson wrote:


> > OK, so how do you fix it automatically with emacs?
> 
> I don't, I fix it by hand, it only takes a moment.

It is still annoying to have to insert a blank line (even in particular
cases).

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-15 Thread Dave Pearson

On Wed, Nov 14, 2001 at 06:40:37PM +0100, Vincent Lefevre wrote:
> On Wed, Nov 14, 2001 at 17:10:24 +, Dave Pearson wrote:
>
> > Right, ok, the mode I use locally (not to be confused with post.el)
> > doesn't handle that either. This is never a problem for me because I
> > view the above as broken quoting anyway and,
> 
> Yes, but some users generate such quoting.

Obviously, otherwise it wouldn't exist. See above and below. I fix it on the
rare occasion when I encounter it.

> > when I need to fill and quote text like the above, I fix it first (makes
> > it more readable for me and for other people).
> 
> OK, so how do you fix it automatically with emacs?

I don't, I fix it by hand, it only takes a moment.

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: line length

2001-11-14 Thread Vincent Lefevre

On Wed, Nov 14, 2001 at 17:10:24 +, Dave Pearson wrote:
> There is no post.el on my site.

Oops, on Rob's site.

> > > > bar
> > > blah1
> > > blah2
> > blah3
> > blah4
> 
> Right, ok, the mode I use locally (not to be confused with post.el) doesn't
> handle that either. This is never a problem for me because I view the above
> as broken quoting anyway and,

Yes, but some users generate such quoting.

> when I need to fill and quote text like the above, I fix it first
> (makes it more readable for me and for other people).

OK, so how do you fix it automatically with emacs?

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-14 Thread Dave Pearson

On Wed, Nov 14, 2001 at 04:17:38PM +0100, Vincent Lefevre wrote:
> On Wed, Nov 14, 2001 at 10:32:47 +, Dave Pearson wrote:
>
> > Given that I've never made my mode publicly available (at least, I don't
> > ever recall making it publicly available other than donating some
> > non-mode stuff to post.el) I'm not sure how you can say this.
> 
> Well, the post.el file on your site still doesn't do what it should.

There is no post.el on my site.

> > Can you explain the nature of the brokenness in the mode I use here that
> > I describe above?
> 
> I gave an example in another message:
> 
> > > bar
> > blah1
> > blah2
> blah3
> blah4

Right, ok, the mode I use locally (not to be confused with post.el) doesn't
handle that either. This is never a problem for me because I view the above
as broken quoting anyway and, when I need to fill and quote text like the
above, I fix it first (makes it more readable for me and for other people).

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: line length

2001-11-14 Thread Vincent Lefevre

On Wed, Nov 14, 2001 at 10:32:47 +, Dave Pearson wrote:
> Given that I've never made my mode publicly available (at least, I don't
> ever recall making it publicly available other than donating some non-mode
> stuff to post.el) I'm not sure how you can say this.

Well, the post.el file on your site still doesn't do what it should.

> Can you explain the nature of the brokenness in the mode I use here
> that I describe above?

I gave an example in another message:

> > bar
> blah1
> blah2
blah3
blah4

It is reformatted as:

> > bar > blah1 > blah2 blah3 blah4

instead of:

> > bar
> blah1 blah2
blah3 blah4

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-14 Thread Dave Pearson

On Wed, Nov 14, 2001 at 03:42:56AM +0100, Vincent Lefevre wrote:
> On Tue, Nov 13, 2001 at 15:04:15 +, Dave Pearson wrote:
>
> > I use emacs as my editor for composing email with mutt, the mode I use
> > is a local hack that derives from `mail-mode' (some of the code in
> > question made it into post.el
> > http://astro.utoronto.ca/~reid/mutt/>). I've never had a problem
> > with M-q and "normally" quoted text and, on the very rare occasion that
> > I do have a problem, I use `set-fill-prefix' (C-x .) to give the filling
> > code a clue.
> 
> Filling is still broken with your mode.

Given that I've never made my mode publicly available (at least, I don't
ever recall making it publicly available other than donating some non-mode
stuff to post.el) I'm not sure how you can say this. Can you explain the
nature of the brokenness in the mode I use here that I describe above?

-- 
Dave Pearson:  | mutt.octet.filter - autoview octet-streams
http://www.davep.org/  | mutt.vcard.filter - autoview simple vcards
Mutt:  | muttrc2html   - muttrc -> HTML utility
http://www.davep.org/mutt/ | muttrc.sl - Jed muttrc mode



Re: line length

2001-11-13 Thread Matthew D. Fuller

On Tue, Nov 13, 2001 at 11:48:59AM -0600 I heard the voice of
David Champion, and lo! it spake thus:
> 
> There is no tw/textwidth in vi -- use wm/wrapmargin instead. Set it to
> the width of your right-hand margin to auto-wrap text. (For example: set
> wm=8 to wrap at 72 columns on an 80-column screen.)

The downside of this is that it then becomes highly dependant on your
terminal width.  For those of us who keep 30-40 xterms around, and fire
up editors all over the place, that's not necessarily a fixed quantity
:)

I use the 'wraplength' property, which specifies ling length instead of
something so ethereal as 'right margin size'.  The DOWNSIDE is that (at
least in the case of nvi) it doesn't keep re-wrapped as you add/remove
text, but that doesn't particularly bother me; I map ^R to fmt  if
I do any major changes.



-- 
Matthew Fuller (MF4839) |[EMAIL PROTECTED]
Unix Systems Administrator  |[EMAIL PROTECTED]
Specializing in FreeBSD |http://www.over-yonder.net/

"The only reason I'm burning my candle at both ends, is because I
  haven't figured out how to light the middle yet"



Re: line length

2001-11-13 Thread Vincent Lefevre

On Tue, Nov 13, 2001 at 15:04:15 +, Dave Pearson wrote:
> I use emacs as my editor for composing email with mutt, the mode I use is a
> local hack that derives from `mail-mode' (some of the code in question made
> it into post.el http://astro.utoronto.ca/~reid/mutt/>). I've never had
> a problem with M-q and "normally" quoted text and, on the very rare occasion
> that I do have a problem, I use `set-fill-prefix' (C-x .) to give the
> filling code a clue.

Filling is still broken with your mode.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-13 Thread Daniel Eisenbud

On Tue, Nov 13, 2001 at 03:50:46PM -0700, Rob 'Feztaa' Park <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 13, 2001 at 11:48:59AM -0600, David Champion (dis)graced my inbox with:
> > For example, in your .exrc:
> > map v {j0!}fmt -w72
> > 
> > This makes "v" reformat the current paragraph to 72 columns. It ought to
> > work on any variety of unix or a unix clone, with vi or any vi clone.
> 
> Hmmm, I tried that with vim... it kinda screws up the quoting. It
> works great for my own writing, though. Example:

If you put the following line in your .vimrc:

autocmd BufRead .followup,.article*,.letter*,*/tmp/mutt* set fo=tcq2 
comments=n:>,n::,n:»,n:],fb:- tw=72

then vim will wrap at the end of lines for all mail and news articles,
and "gq" will do the right thing with wrapping quoted text.

-Daniel

-- 
Daniel E. Eisenbud
[EMAIL PROTECTED]

"We should go forth on the shortest walk perchance, in the spirit of
undying adventure, never to return,--prepared to send back our embalmed
hearts only as relics to our desolate kingdoms."
--Henry David Thoreau, "Walking"



Re: line length

2001-11-13 Thread David Champion

On 2001.11.13, in <[EMAIL PROTECTED]>,
"Rob 'Feztaa' Park" <[EMAIL PROTECTED]> wrote:
> 
> Hmmm, I tried that with vim... it kinda screws up the quoting. It
> works great for my own writing, though. Example:

Yes, that's one of the ways that par's abilities exceed fmt's. Par is
fairly tolerant of and fairly smart about quotation symbols, comment
markers, and other such tokens.

Its manual is an atrocity, though. Voodoo is probably a better overall
tactic than to RTFM.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



Re: line length

2001-11-13 Thread Rob 'Feztaa' Park

On Tue, Nov 13, 2001 at 11:48:59AM -0600, David Champion (dis)graced my inbox with:
> For example, in your .exrc:
> map v {j0!}fmt -w72
> 
> This makes "v" reformat the current paragraph to 72 columns. It ought to
> work on any variety of unix or a unix clone, with vi or any vi clone.

Hmmm, I tried that with vim... it kinda screws up the quoting. It
works great for my own writing, though. Example:

On Tue, Nov 13, 2001 at 11:48:59AM -0600, David Champion (dis)graced my
inbox with: > For example, in your .exrc: > map v {j0!}fmt -w72 > > This makes "v" reformat the current paragraph to 72
columns. It ought to > work on any variety of unix or a unix clone,
with vi or any vi clone.

Yeah ;)

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
"The most overlooked advantage of owning a computer is that if they 
foul up, there's no law against whacking them around a bit."
-- Eric Porterfield



Re: line length

2001-11-13 Thread Vincent Lefevre

On Tue, Nov 13, 2001 at 10:36:51 -0500, Samuel Padgett wrote:
> Huh?  Emacs is _excellent_ at this.  What mode and you using to
> edit messages and what problems are you having?

I posted the following article:


From: Vincent Lefevre <[EMAIL PROTECTED]>
Subject: filling in mail-mode
Newsgroups: comp.emacs
Date: 9 Mar 2001 13:30:01 GMT
Message-ID: <20010309132717$[EMAIL PROTECTED]>

How can I have correct filling in mail-mode?

For instance, I want the following

> > - foo
> > bar
> blah1
> blah2
blah3
blah4

to be regarded as 3 paragraphs:

> > - foo bar
> blah1 blah2
blah3 blah4


You can look at the full thread on Google Groups.

I've just downloaded Dave's post.el and will have a look at it later...

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-13 Thread David Champion

On 2001.11.13, in <[EMAIL PROTECTED]>,
"Will Yardley" <[EMAIL PROTECTED]> wrote:
> 
> mutt doesn't have an editor, so this is a function of your editor.  in
> vim you can use :set tw=74 or :set textwidth=74
> 
> nvi and other vi clones should be the same, but you can't use 'gqip' or
> 'gqap' to format lines (maybe install par).

There is no tw/textwidth in vi -- use wm/wrapmargin instead. Set it to
the width of your right-hand margin to auto-wrap text. (For example: set
wm=8 to wrap at 72 columns on an 80-column screen.)

vim and other vi clones should be the same. :)

You can also use "fmt" to format lines instead of gq-whatever -- there's
no need to install par, though it is more powerful than fmt.

For example, in your .exrc:
map v {j0!}fmt -w72

This makes "v" reformat the current paragraph to 72 columns. It ought to
work on any variety of unix or a unix clone, with vi or any vi clone.

-- 
 -D.[EMAIL PROTECTED]NSITUniversity of Chicago



Re: line length

2001-11-13 Thread Samuel Padgett

Vincent Lefevre <[EMAIL PROTECTED]> writes:

> If you want to reformat quoted text, emacs is quite bad at this,
> and I've never found *perfect* LISP code to do that. :(

Huh?  Emacs is _excellent_ at this.  What mode and you using to
edit messages and what problems are you having?

Sam [writing this in Vim]



Re: line length

2001-11-13 Thread Samuel Padgett

Will Yardley <[EMAIL PROTECTED]> writes:

> mutt doesn't have an editor, so this is a function of your editor.  in
> vim you can use :set tw=74 or :set textwidth=74

In Emacs,

(add-hook 'text-mode-hook 'turn-on-auto-fill)

This assumes you're using text-mode or one of its derivatives to
compose messages.

> nvi and other vi clones should be the same, but you can't use 'gqip' or
> 'gqap' to format lines (maybe install par).

M-q in Emacs.

> if you use emacs, i'm sorry, and YOU are on your own :>

;-)

Sam



Re: line length

2001-11-13 Thread Dave Pearson

On Tue, Nov 13, 2001 at 12:34:36PM +0100, Vincent Lefevre wrote:

> If you want to reformat quoted text, emacs is quite bad at this, and I've
> never found *perfect* LISP code to do that. :(

I use emacs as my editor for composing email with mutt, the mode I use is a
local hack that derives from `mail-mode' (some of the code in question made
it into post.el http://astro.utoronto.ca/~reid/mutt/>). I've never had
a problem with M-q and "normally" quoted text and, on the very rare occasion
that I do have a problem, I use `set-fill-prefix' (C-x .) to give the
filling code a clue.

-- 
Dave Pearson:   | lbdb.el - LBDB interface.
http://www.davep.org/   |  sawfish.el - Sawfish mode.
Emacs:  |  uptimes.el - Record emacs uptimes.
http://www.davep.org/emacs/ | quickurl.el - Recall lists of URLs.



Re: line length

2001-11-13 Thread Vincent Lefevre

On Tue, Nov 13, 2001 at 03:07:57 -0800, Will Yardley wrote:
> mutt doesn't have an editor, so this is a function of your editor.  in
> vim you can use :set tw=74 or :set textwidth=74
> 
> nvi and other vi clones should be the same, but you can't use 'gqip' or
> 'gqap' to format lines (maybe install par).
> 
> if you use emacs, i'm sorry, and YOU are on your own :>

There is a function to word-wrap automatically, but I finally disabled
it because it was annoying in some cases, e.g. when mailing code or
log files or something similar. I prefer to do that manually with
Esc-q (or M-q).

If you want to reformat quoted text, emacs is quite bad at this,
and I've never found *perfect* LISP code to do that. :(

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des
Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Re: line length

2001-11-13 Thread Will Yardley

Theo Bierman wrote:
> 
> Does anyone know how to set the line length in mutt to 74 characters
> so the lines wrap

mutt doesn't have an editor, so this is a function of your editor.  in
vim you can use :set tw=74 or :set textwidth=74

nvi and other vi clones should be the same, but you can't use 'gqip' or
'gqap' to format lines (maybe install par).

if you use emacs, i'm sorry, and YOU are on your own :>

pico and nano wrap by default i think (although you might need to do
something to make them wrap at a specific number of characters).

if you specify what editor you're using, you're more likely to get a
response.  i think that if you haven't specified one in your .muttrc,
you'll get the default $EDITOR set in your environment.

mine is:

set editor="vim +'/^$/+1' -c 'set nohlsearch' +':set textwidth=72'
+':set wrap' +':fixdel' +':set t_kD=' +':set noai' +':syntax on'"

i have this and other stuff set in my .vimrc and .gvimrc as well.

w

-- 
GPG Public Key:
http://infinitejazz.net/will/pgp/



Re: Line length using EDITOR=emacs

2001-03-08 Thread Richard B Mahoney

On 03/08/01, 09:42:49AM +1100, Robert Martinovic wrote:

>  Hello,

>  I know that there are mutt users using emacs as their editor. I
>  would like to know how to set line length at 72 chars in my
>  .emacs

>  It infuriates many to have messages longer that 72 chars to a
>  line


One can use post.el v.1.6.3.10. This sets up post mode for mail
and news when emacs is invoked. Once that has been done one can
set up a line length peculiar to mail messages. For example:


;; --
;; Set fill to 65 (default) columns post-mode, but 70 in 
;; text/related modes
(defun my-post-mode-setup ()
  (setq fill-column 65))
(add-hook 'post-mode-hook 'my-post-mode-setup)
(defun my-text-mode-setup ()
  (setq fill-column 70))
(add-hook 'text-mode-hook 'my-text-mode-setup)
;; --


Hope this helps.

Many regards,

 Richard Mahoney


-- 
 Richard Mahoney -
78 Jeffreys Rd  +64-3-351-5831
Christchurch   New Zealand
--- mailto:[EMAIL PROTECTED] 



Re: Line length using EDITOR=emacs

2001-03-07 Thread John P. Verel

On 03/08/01, 09:42:49AM +1100, Robert Martinovic wrote:
> Hello,
> 
> I know that there are mutt users using emacs as their editor. I would like to know 
>how to set line length at 72 chars in my .emacs
> 
> It infuriates many to have messages longer that 72 chars to a line
> 
> Robert
Put this in .emacs:
(setq default-major-mode 'text-mode)
(add-hook 'text-mode-hook 'turn-on-auto-fill)

Should fix the problem.
-- 
John P. Verel
Norwalk, CT



Re: Line length and word wrapping

2000-12-18 Thread David Alban

Gary,

At 2000/12/18/21:49 -0800 Gary Johnson <[EMAIL PROTECTED]> wrote:
> Thanks, David.  That does save a few keystrokes and would be handy when
> using vi.  I often do something similar by first typing 'gqj' to
> reformat the current line and the next line, then typing '.' to repeat
> the operation down the page as many times as necessary.  This also works
> for reformatting various styles of comments, including messages quoted
> with leading '> '.

Wow.  That's *much* better than what I was doing!  Shows how little vim
documentation I've read. :-)

David
-- 
Live in a world of your own, but always welcome visitors.



Re: Line length and word wrapping

2000-12-18 Thread Gary Johnson

On Mon, Dec 18, 2000 at 08:34:37PM -0800, David Alban wrote:

> At 2000/12/18/16:48 -0800 Gary Johnson <[EMAIL PROTECTED]> wrote:
> > There's no really good way (i.e., none that I like) to automatically
> > reformat paragraphs within vim
> 
> Hmmm...  Maybe you'll like this.  Works for either vi or vim.  Define
> the following key mapping in .exrc or .vimrc: 
> 
> map } 0J071lBXi


> Then enter vi(m), position the cursor anywhere on the first line of a
> paragraph, and in command mode, press the '}' key repeatedly, with
> each press formatting the current line (which advances) so that it is
> not more than 72 characters long.

Thanks, David.  That does save a few keystrokes and would be handy when
using vi.  I often do something similar by first typing 'gqj' to
reformat the current line and the next line, then typing '.' to repeat
the operation down the page as many times as necessary.  This also works
for reformatting various styles of comments, including messages quoted
with leading '> '.

What I meant was that I haven't found a good way to have vim
automatically reflow the lines of a paragraph as I type, or when
changing from insert mode to command mode.  I've seen ways to do it, but
because vim doesn't distinguish among different paragraph types, all the
techniques I've seen assume that all paragraphs should be reformatted
when edited.  That doesn't work very well when editing other structures
such as tables.  Any technique that requires that I toggle some macro
mode for different paragraph types or end insert mode with a character
other than Escape is, to me, more bother than just using gq when
necessary.

Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | RF Communications Product Generation Unit
 | Spokane, Washington, USA



Re: Line length and word wrapping

2000-12-18 Thread David Alban

Gary,

On Mon, Dec 18, 2000 at 03:58:21PM -0800, Mike E wrote:
> set editor='vim "+set tw=73"'
> 
> This automatically sets a 73 column textwrap in vim, so that I no
> longer have to pipe all my email paragraphs through fmt. However, I 
> just noticed that if I go back and type on a line, it doesn't
> automatically re-wrap the line, so it looks like I still do have to
> format it through fmt. :/

At 2000/12/18/16:48 -0800 Gary Johnson <[EMAIL PROTECTED]> wrote:
> There's no really good way (i.e., none that I like) to automatically
> reformat paragraphs within vim

Hmmm...  Maybe you'll like this.  Works for either vi or vim.  Define
the following key mapping in .exrc or .vimrc: 

map } 0J071lBXi


Notice that the 'i' is followed by a newline and an escape character,
not by '^', 'M', '^', and '['.
  
Then enter vi(m), position the cursor anywhere on the first line of a
paragraph, and in command mode, press the '}' key repeatedly, with
each press formatting the current line (which advances) so that it is
not more than 72 characters long.

This is my own "text-flow macro".  Vary the "71" to your taste.  Make
it N - 1, where N is the maximum number of characters per line
acceptable to you.

David
-- 
Live in a world of your own, but always welcome visitors.



Re: Line length and word wrapping

2000-12-18 Thread Gary Johnson

On Mon, Dec 18, 2000 at 03:58:21PM -0800, Mike E wrote:

> set editor='vim "+set tw=73"'
> 
> This automatically sets a 73 column textwrap in vim, so that I no
> longer have to pipe all my email paragraphs through fmt. However, I 
> just noticed that if I go back and type on a line, it doesn't
> automatically re-wrap the line, so it looks like I still do have to
> format it through fmt. :/

There's no really good way (i.e., none that I like) to automatically
reformat paragraphs within vim, but there are some things you can do to
make it easier.  For example, you can use vim's internal formatter to
reformat the current paragraph by typing

gqip

Or, if you prefer to use fmt, you can put something like this in your
.vimrc:

au BufNewFile,BufRead,BufEnter *set equalprg=
au BufNewFile,BufRead,BufEnter /tmp/mutt-*  set equalprg=fmt

and reformat the current paragraph with

=ip

Of course you can use object/motion commands other than "ip", but you
get the idea.

Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | RF Communications Product Generation Unit
 | Spokane, Washington, USA



Re: Line length and word wrapping

2000-12-18 Thread Mike E

* Jeffrey A Schoolcraft ([EMAIL PROTECTED]) wrote:
> I have a problem with my line length and word wrapping.  I'm not sure where the 
>configurations are in the muttrc but if someone could help me I would appreciate it 
>(and I'm sure everyone else I write to would also).

I just changed my editor entry to:

# editor
set editor='vim "+set tw=73"'

This automatically sets a 73 column textwrap in vim, so that I no
longer have to pipe all my email paragraphs through fmt. However, I 
just noticed that if I go back and type on a line, it doesn't
automatically re-wrap the line, so it looks like I still do have to
format it through fmt. :/

anyhow...
Mike

-- 
Mike Erickson  http://www.quidquam.com/
"The more noise a man or a motor makes the less power there is
available." - W. R. McGeary



Re: Line length and word wrapping

2000-12-18 Thread Thomas Roessler

On 2000-12-18 09:15:29 -0500, Jeffrey A Schoolcraft wrote:

> I have a problem with my line length and word wrapping.  I'm not
> sure where the configurations are in the muttrc but if someone
> could help me I would appreciate it (and I'm sure everyone else I
> write to would also).

:-)

It's nothing you can configure with mutt proper - it's a property of
the editor you use.  If it's vi, look at the wrapmargin variable.

-- 
Thomas Roessler <[EMAIL PROTECTED]>



Re: Line length and word wrapping

2000-12-18 Thread Jeffrey A Schoolcraft

I'm pretty sure that I've fixed my line length word prolem.  If someone
could just post back and say yes or not I would appreciate it.  Thanks.  

Jeff

* Jeffrey A Schoolcraft ([EMAIL PROTECTED]) wrote:
> I have a problem with my line length and word wrapping.  I'm not sure where the 
>configurations are in the muttrc but if someone could help me I would appreciate it 
>(and I'm sure everyone else I write to would also).
> 
> Jeff
> 



Re: Line length and word wrapping

2000-12-18 Thread Suresh Ramasubramanian

Jeffrey A Schoolcraft proclaimed on mutt-users that: 

> I have a problem with my line length and word wrapping.  I'm not sure where
> the configurations are in the muttrc but if someone could help me I would
> appreciate it (and I'm sure everyone else I write to would also).
 
 The config is in your .vimrc, .exrc (or whatever editor you use for mutt)

-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
The joys of love made her human and the agonies of love destroyed her.
-- Spock, "Requiem for Methuselah", stardate 5842.8



Re: Line length and word wrapping

2000-12-18 Thread Charles Curley

On Mon, Dec 18, 2000 at 09:15:29AM -0500, Jeffrey A Schoolcraft wrote:

> I have a problem with my line length and word wrapping.  I'm not sure
> where the configurations are in the muttrc but if someone could help me
> I would appreciate it (and I'm sure everyone else I write to would
> also).

Yes, you certainly do. :-)

You should deal with that in your editor, not in mutt. There has been
discussion of how to do this in vim on this list; you might check the
archives.


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley
 PGP signature