On Tue, 2003-11-18 at 22:23, Matt Price wrote: > hey folks, > > I use emacs as my main text editor, but vastly prefer to run emacs in > an xterm (emacs -nw) over xemacs (xemacs is quite ugly, to the point > of unreadability, as currently configured on my machine; and also I > often write mail via ssh with X forwarding enabled, so if Xemacs > starts up in this situation I'm left with a hofrribly slow editor). > > Everywhere I look it says I should use emacsclient to manage multiple > emacs sessions. And I'd love to, isnce its way fast and it's great to > be able to access all my buffers. But I want the textfile or mail to > show up in the xterm window 'm currently using. > > That is, I'd like to have something along the lines of > "emacsclient -nw" as my default editor. But as far as I can tell this > option isn't available. Any suggestions?
emacsclient will connect to the first already-running instance of emacs it finds. If the only instance of emacs you have running at the moment is in an xterm (started via emacs -nw) then emacsclient will just connect to it and you can go from there. Now if what you want is to run a REMOTE emacsclient and have it connect to a LOCAL instance of emacs using X forwarding, I don't think it can be done. The X forwarding only forwards the DISPLAY. The PROCESS continues to run on the machine you're connected to. So you can't have a remote emacsclient connect to a LOCAL emacs. -- Alex Malinovich Support Free Software, delete your Windows partition TODAY! Encrypted mail preferred. You can get my public key from any of the pgp.net keyservers. Key ID: A6D24837
signature.asc
Description: This is a digitally signed message part