all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten <quintfall@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs server
Date: Tue, 21 Feb 2012 08:58:23 +0100	[thread overview]
Message-ID: <87ehtohb34.fsf@googlemail.com> (raw)
In-Reply-To: jhv0si$o1d$1@dough.gmane.org

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> On 2/17/12 6:42 AM, Thorsten wrote:
>> Thank, that does the job. One more related question: I like to have a
>> black background and white (or wheat) foreground (and I'm not such a fan
>> of the color-themes because of their generally weak contrasts). In an X
>> session, I would start emacs with -fg black and -bg wheat flags. In an
>> console session, this looks strange, but starting emacs without those
>> two flags already gives a black background and a white foreground.
>>
>> Now - what can I do when I want to have only one emacs-server running
>> and start several emacsclients in the console as well as in the X
>> session? Is there a way to start different emacsclients with different
>> fg/bg colors without always changing the colors explicitly with M-x
>> set-{background, foreground}-color when switching between the clients?
>
> Does emacsclient handle the -name argument? If so, you can set up
> different
> foreground/background pairs in ~/.Xdefaults with different instance names.

Yes 
"The emacsclient program can specify a server by name, using the -s
option"
Since I want only one server instance running, you mean I could define
alias-names that point to the same server, but set up different fg/bg
colors? 
I would not know how to do this. 

I already solved the color-problem using the server-visit-hook and
display-graphic-p predicate. 

I still have some problems to gracefully exit my "1 server, many
(terminal and X11) clients" setup. When I use 'C-x #' to close unused
emacsclients in the X11 and return to my terminal session, all my
emacsclients there are killed too - very inconvenient. And when I
finally kill the emacs-daemon with 'M-x kill-emacs', I'm asked at the
next start-up if I want to recover the crashed session. But I don't want
to crash emacs on exit, I want to shut it down in a controlled and
civilized manner.

cheers
--
Thorsten




      reply	other threads:[~2012-02-21  7:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  9:16 Emacs server Thorsten
2012-02-17 11:52 ` Peter Münster
2012-02-17 13:42   ` Thorsten
2012-02-17 14:04     ` Peter Münster
2012-02-17 14:20       ` Thorsten
2012-02-18 22:53       ` Thorsten
2012-02-19 13:31         ` Thorsten
2012-02-21  2:53     ` Kevin Rodgers
2012-02-21  7:58       ` Thorsten [this message]

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=87ehtohb34.fsf@googlemail.com \
    --to=quintfall@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.