At 6:08 AM EST on March 3 Ralf Hildebrandt sent off:
> On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote:
> > I'm new to mutt. I read in the FAQ about emacsclient as an editor
> > choice, but I must be making a syntax error in my .muttrc. My messages
> > abort before I even get to the editor.
> >
> > This is what I'm doing:
> >
> > set editor="/usr/bin/emacsclient %s"
> >
> > How mutt calls the editor is mysterious to me. I don't understand what
> > syntax is wanted.
>
> Have you started emacs correctly before you tried to invoke emacsclient?
>
i.e. you need (server-start) in your .emacs. (C-x C-e at the end of the line
to start it without restarting emacs.)
If you'll permit a plug, one of my web pages has mutt oriented email editing
goodies: http://astro.utoronto.ca/~reid/mutt/
I prefer to only use emacsclient if I'm in X (i.e. most of the time) and jed
otherwise. If you set mutt's editor, $EDITOR, and $VISUAL to the attached
script, it will automatically send you to jed if you're not running an emacs
server, and emacsclient if you are.
HTH.
--
Autocracy, n.: Rule by automobiles. - Hamish Wilson
Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
PGP Key: http://astro.utoronto.ca/~reid/pgp.html
#!/bin/sh
editor="jed"
serverrunning="`ps -u ${USER} | grep emacsserver`"
if [ "${serverrunning}" != "" ] ; then
editor="emacsclient"
fi
exec ${editor} $@