[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reuse frame with emacsclient and/or use shell aliases when finding f

From: Robert Thorpe
Subject: Re: Reuse frame with emacsclient and/or use shell aliases when finding files
Date: Sat, 31 May 2014 16:49:54 +0100

Jacob Gerlach <> writes:

>> That's wierd.  Have a look at the section on "Emacs Server" in the Emacs
>> manual.  Emacsclient can only work if you have an Emacs server running.
>> To get one you have to start Emacs then run (server-start).  After that
>> emacsclient will send a message to the running Emacs server telling it
>> to open the file.
> Perhaps a bit of miscommunication. I was starting the server by
> running `emacs --daemon'. From my reading of the server help page,
> this does more or less the same thing as a regular instance with
> (server-start). 

Ah, daemon mode is a different thing.  I don't know about it, maybe
someone else here does though.

> Previous comment about --daemon notwithstanding, I tried it the way
> you suggest, and this seems closer to the functionality I'm looking
> for. I need to play around with this a bit and see if I can tweak it
> to work exactly the way I like.
> For example, I'd like the same shell command to start emacs initially
> as to connect as a client if it's already running. I think I figured
> out how to do this when running --daemon, specifying alternate editor
> as ''. I imagine it's something similar.

Set ALTERNATE_EDITOR to "emacs".  That said what you want should work
with emacs --daemon.

Robert Thorpe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]