<<< Date Index >>>     <<< Thread Index >>>

Re: wrap long lines



On 2006-08-27, cga2000 <cga2000@xxxxxxxxxxxxx> wrote:
> [..]
> 
> On Fri, Aug 25, 2006 at 09:35:05AM EDT, Todd Zullinger wrote:
> 
> > In that case, set wrapmargin to $COLUMNS - 80.
> 
> Hmm.. 
> 
> How do I ..
> 
> 1. access the contents of an environment variable in mutt
> 2. code a set statement that accesses a *nix env variable

    set wrapmargin=`echo $(( $COLUMNS - 80 ))`

The expression in back-tics is given to the shell for evaluation.  
This is briefly mentioned in section 3.1 of the mutt manual, "Syntax 
of Initialization Files".

Regards,
Gary

-- 
Gary Johnson                               | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx                   | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA