[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
Re: Reuse frame with emacsclient and/or use shell aliases when finding files
Sat, 31 May 2014 16:49:54 +0100
Jacob Gerlach <firstname.lastname@example.org> 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
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.
Re: Reuse frame with emacsclient and/or use shell aliases when finding files, Thorsten Jolitz, 2014/05/31