On Sat, May 13, 2000 at 11:36:38PM +0200, Stephane Payrard wrote:
> On Sat, May 13, 2000 at 06:23:58AM -0600, Charles Curley wrote:
> > On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
> > -> Again with the lost configs. I used to just type that sequence after
> > -> writing an email and emacs would save and exit, automagically
> > -> releasing control to Mutt. Unfortunately, now I have to explicitily
> > -> exit before continuing. Does anyone know what I want to adjust to
> > -> make the sequence C-c C-c (or any sequence for that matter) do this
> > -> automagically again? I know that this is really a .emacs question, but
> > -> I thought it was in post.el, so it's a Mutt specific .emacs question
> > -> :-)
> > 
> > Rather than firing up Emacs and exiting it every time you want to use it,
> > fire up Emacs once per login and shut it down when you log out. It means
> > access to files is much faster.
> > 
> > In Mutt, set your editor to emacsclient:
> > 
> > set editor="emacsclient"    # editor to use when composing messages
> 
> You can also set the VISUAL or EDITOR variable that buy you the same
> feature (popping a emacs buffer to edit stuff) for many tools at once.
> 
> > 
> > and use C-x # to exit. You can do other tricks by building an elisp
> > function which would call "server-exit", the function C-X # calls. For
> > example, one of these days I will get around to writing a function like
> 
> you also need the following line in ~/.emacs to enable the server part
> at emacs startup:
> 
> (gnuserv-start)
> 
For vi lovers this can all be done in a similar way with xvile, I use
it all the time, the equivalent to 'emacslient' is 'vileget'.  It's
slightly cleverer than the above in fact, if vileget can't find a
running xvile it starts one up for you.

[x]vile is my vi clone of choice, it's actually based on an emacs
engine, has most of the goodies that emacs gives you but is close
enough to 'real' vi to present no problems when moving from vi to
xvile and back.  It also has perl scripting built into it if you want.

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]           Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/

Reply via email to