Re: set editor, switching from vim to emacs
On Tue, Nov 18 2003 at 04:43:35AM BRST, Rob Reid <kepler@xxxxxxx> wrote:
> At 9:50 PM PST on November 17 Allister MacLeod sent off:
> > GNU Emacs
> ...
> > comes with the -nw switch, which I use to have emacs use the same
> > xterm as mutt. Perhaps my confusion springs from my unfamiliarity
> > with *client wrt emacs.
>
> emacsclient filename
>
> puts "filename" in a buffer on an already running emacs.
Exactly, that's what I meant. Starting emacs everytime is not only
time consuming (though "xemacs -vanilla" comes up pretty quickly, could be
used with -eval for frequent editing; I remember there's something similar
in GNU (or FSF, means the same editor) Emacs). It's definetly a better
solution, if you're going to use it frequently, to keep a copy of emacs open
and call emacsclient (or gnuclient - see below).
> On one hand, you have less time to gleefully jump up and down while
> anticipating the start of emacs,
Hehehe :)
> but on the other hand you have all of your buffers in the same instance of
> emacs.
>
> gnuclient accepts more command line arguments than emacsclient, but last I
> checked (not recently) its authentication method was flimsy.
Really? Why's that so?
Well, I remember gnuclient didn't work really well with GNU Emacs,
but my point wasn't substituting gnuclient for emacsclient, in GNU Emacs. I
suggested substituting (GNU Emacs + emacsclient) for (XEmacs +
gnuclient). Since the original poster (Konstantin?) was apparently starting,
he might as well try them both.
Again, my reason from prefering xemacs + gnuclient for mutt is that,
when you use "emacsclient %s", you have to move to the window where you
originally opened Emacs to edit the file, then back to mutt when you're
done; with xemacs + gnuclient, gnuclient opens a window right there, where
you called it (if you're in X and want to keep it in mutt's xterm, use
"gnuclient -nw %s").
rbp
--
Rodrigo Bernardo Pimentel <rbp@xxxxxxxxxxxx>
http://isnomore.net GPG KeyId: <0x0DB14978>
Vegetarianism for me is about saying "yes" to things - even meat.
-- Jane, "Coupling"