all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Jacob Gerlach <jacobgerlach@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Reuse frame with emacsclient and/or use shell aliases when finding files
Date: Sat, 31 May 2014 16:49:54 +0100	[thread overview]
Message-ID: <877g52q76l.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <5fefb77c-7a7b-4ec6-bde3-fef2d2aa4877@googlegroups.com> (message from Jacob Gerlach on Sat, 31 May 2014 07:16:03 -0700 (PDT))

Jacob Gerlach <jacobgerlach@gmail.com> 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.

BR,
Robert Thorpe



  reply	other threads:[~2014-05-31 15:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30 21:56 Reuse frame with emacsclient and/or use shell aliases when finding files Jacob Gerlach
2014-05-30 22:13 ` Thorsten Jolitz
2014-05-30 22:47 ` Robert Thorpe
     [not found] ` <mailman.2576.1401490089.1147.help-gnu-emacs@gnu.org>
2014-05-31  1:57   ` Jacob Gerlach
2014-05-31 11:21     ` Thien-Thi Nguyen
2014-05-31 11:22     ` Robert Thorpe
     [not found]     ` <mailman.2614.1401535376.1147.help-gnu-emacs@gnu.org>
2014-05-31 14:16       ` Jacob Gerlach
2014-05-31 15:49         ` Robert Thorpe [this message]
2014-05-31 11:41 ` Thorsten Jolitz
2014-05-31 13:39   ` Robert Thorpe
2014-05-31 15:54     ` Thorsten Jolitz
2014-06-01 23:42 ` lee
     [not found] ` <mailman.2724.1401666174.1147.help-gnu-emacs@gnu.org>
2014-06-02  1:10   ` Jacob Gerlach
     [not found] ` <mailman.2618.1401536506.1147.help-gnu-emacs@gnu.org>
2014-06-06  8:35   ` Hans BKK
2014-06-06 11:31 ` Alexander Baier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877g52q76l.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jacobgerlach@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.