On Thu, Jun 01, 2000 at 05:55:45PM +0300, Mikko Hänninen wrote:
-> Manuel Arriaga <[EMAIL PROTECTED]> wrote on Thu, 01 Jun 2000:
-> > emacs -f server-start
->
-> > how can I run the server without tying up a
-> > virtual console?
->
-> This is pretty basic unix stuff, but I guess you have to learn it from
-> somewhere. :-) Put a & at the end of the (or any) command line, to put
-> that command in "background". eg.
->
-> emacs -f server-start &
That will work.
I prefer to put options like starting the server into my .emacs, so edit
the following into your .emacs:
(server-start)
Now you can change the line to:
emacs &
(See my emacs resources at the URL in my signature for more information on
.emacs files.)
->
-> > Is it possible to automatically start a "server" version of emacs after
-> > login so that mutt can always run emacsclient?
->
-> Sure. This depends on which shell you're using, but each shell has a
-> startup file that is run every time you log in. For bash, it's .profile
-> (or .bashrc, both are used and both work) in your home dir. For tcsh
-> and the like, it's .cshrc. Putting the above command (with the &) in
-> that file will run it every time you log in.
->
-> Note that the file is run *every* time, so hopefully the command will
-> not start more than one instance of the server, when run multiple times.
If he puts it into .bashrc, it will run each time a new shell is
launched. To have it run once per login, put it into .bash_profile.
Now, Manuel, read the man page and perhaps some less user hostile
documentation on BASH to learn how to bring background tasks to the
foreground, and the Emacs info pages on how to put it into the background
and return to your shell.
There is another way to do this, I believe. I seem to recall a tool that
lets you launch a program into a given virtual console. Then you can
switch between mutt and emacs by toggling virtual consoles, which I
believe was your original question. Anyone recall its name?
--
-- C^2
No windows were crashed in the making of this email.
Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley