Jesper Holmberg <[EMAIL PROTECTED]> wrote on Tue, 15 Aug 2000:
> I'm trying to set up some macros, allowing me to ispell e-mails
> depending on the language I've used. I can't get it to work.

Ok.

> macro compose \ef 'set ispell="ispell -d francais"\n:<ispell>:"set \
> ispell=ispell"\n'
> 
> But this makes mutt put the whole macro-line on the subject line of
> the mail.

You need to start the macro with a :, because the macro keystrokes
are interpreted (almost) exactly like you, the user typed them.  So
in the compose menu, when the user presses "s", this is the key for
editing the subject line...

I think you also don't need the : in front of the <ispell> function
call.

> macro compose \ef "!ispell -d francais %s"
> 
> But this makes ispell complain it can't find the specified file. 

Right, because the ! escape doesn't put the current temporary file
anywhere, it's just a generic shell command.  The %s is not expanded,
I think.

I don't know if ispell supports getting the text from STDIN, but if
it does you can use | to pipe the current text into it instead, I
guess.  But you'd probably be better off using the first kind of
macro anyway.


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Warning: Dates in the calendar are closer than they appear.

Reply via email to