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

Re: Screen + mutt + emacs



On Wed, Mar 22, 2006 at 10:10:51AM -0500, James wrote:
> Hi all,
> 
> I recently switched from vi to emacs for mail composition.  I run mutt
> on screen 1 and emacs on screen 2.  When I respond to mail or compose
> mail, mutt waits for me to switch screens, compose, and then switch
> back.  I would like mutt to automatically switch to screen 2 (and
> specify a mode).  And I would like emacs to switch back when I hit C-X
> #.

Specify a mode?  I don't know what you mean by that, but it's not
necessary to swtich screens at all.  Instead, use emacsclient or
gnuclient (depending on whether you're using emacs or xemacs) as your
editor in mutt, and just leave emacs running somewhere (maybe screen
2).  Since mutt waits for the mail to be composed, there's no reason
to care about what is going on in screen1; so you might as well run
your editor there.  If you have emacs running somewhere, emacsclient
will connect to it and allow you to edit any buffers which were
running in the original instance of emacs, and save you all the
loading time of executing emacs every time you want to edit a message.

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail.  Sorry for the inconvenience.  Thank the spammers.

Attachment: pgpRabdyw3LYW.pgp
Description: PGP signature