* emacs server per project?
@ 2011-12-20 16:49 Bruce Korb
2012-01-02 14:24 ` Juanma Barranquero
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Korb @ 2011-12-20 16:49 UTC (permalink / raw
To: help-gnu-emacs
Hi,
I work on a number of different projects.
Each project has a devoted desktop, a cscope task and an emacs process.
Unfortunately, only one cscope gets to talk with one emacs process
because all of them want to be /tmp/emacs1000/server. I know I can
manually change the value of "server-name", but that is pretty
inconvenient given that this yields a perfectly usable server name:
server=$(dirname $(pwd | sed "s@^$HOME/*@@") )
more-or-less. It is easy enough to add "-s $server" to the
emacsclient invocation, but telling emacs itself which server name
to use doesn't seem obvious to me. Is there a way, or does one
have to learn emacs lisp and fiddle it in ~/.emacs? Thank you!
Regards, Bruce
P.S. I also tried spawning emacs as a daemon process with --daemon=$server
but I wind up with either a process that steals input from the shell,
or, if I redirect stdin and stdout to /dev/null, it just sees EOF and quits.
That *does* seem a bit odd since if I do *not* specify --daemon, then
it creates its own terminal (or something like that) and does its stdin
and stdout there -- even if I spawn emacs as a true daemon process.
But then I must manually type a bunch of longish manual commands to change
the server name.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: emacs server per project?
2011-12-20 16:49 emacs server per project? Bruce Korb
@ 2012-01-02 14:24 ` Juanma Barranquero
0 siblings, 0 replies; 2+ messages in thread
From: Juanma Barranquero @ 2012-01-02 14:24 UTC (permalink / raw
To: Bruce Korb; +Cc: help-gnu-emacs
On Tue, Dec 20, 2011 at 17:49, Bruce Korb <bruce.korb@gmail.com> wrote:
> telling emacs itself which server name to use doesn't seem obvious to me.
emacs --eval '(setq server-name "my-server-name")' -f server-mode
Juanma
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-02 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 16:49 emacs server per project? Bruce Korb
2012-01-02 14:24 ` Juanma Barranquero
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.