home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!hal.gnu.ai.mit.edu!petrilli
- From: petrilli@hal.gnu.ai.mit.edu (Chris Petrilli)
- Newsgroups: gnu.emacs.help
- Subject: Re: emacsclient - how do I use it?
- Message-ID: <1992Aug21.212736.11003@mintaka.lcs.mit.edu>
- Date: 21 Aug 92 21:27:36 GMT
- References: <KEVIN.92Aug21110652@buffalobill.edscom.demon.co.uk>
- Sender: news@mintaka.lcs.mit.edu
- Distribution: gnu
- Organization: Department of Redundency Department
- Lines: 31
-
- In article <KEVIN.92Aug21110652@buffalobill.edscom.demon.co.uk> kevin@edscom.demon.co.uk (Kevin Broadey) writes:
- >When I built my emacs from distribution 18.57 I noticed an "emacsclient"
- >executable in the etc directory. I assume this is some clever thing to allow
- >you to have several emacs users but only one emacs on your machine (useful
- >considering the size of emacs!). If I'm right, how do you use it? If I'm
- >wrong, what is it?! I did RTFM but I couldn't find a reference to it.
-
- emacsclient lets you use emacs as your editor from another program
- such as TRN, or NN, rather than loading a new copy it will use an
- already running copy. While I'm sure this is designed for X windows,
- I'm using it right now to post from TRN under iSCREEN. All I have to
- do is change my EDITOR envvar to be `emacsclient.' Then when I'm
- done, I hit C-x #, and it returns me to where I was in Emacs, and
- saves the file.
-
- To start a server, put this in your .emacs file:
-
- (server-start)
-
- and then you just need to use the syntax:
-
- emacsclient <filename>
-
- It really isn't designed for multiple users, since that would be a
- MAJOR security hole. But it works great for one user.
-
- Chris
- --
- | Chris Petrilli ____
- | petrilli@gnu.ai.mit.edu ``Quayle is a bozoe.'' \ /
- | I don't even speak for myself. \/
-