Alex Bennee writes: > Hi, > > I want to set-up emacs to start the server once per X sessions (and I > guess once per screen session once I get multi-tty working). However > there doesn't seem to be way to check in emacs if the server is > currently running. > > So far the best I can come up with is having my start-up emacs with the > args: > > emacs --eval (defvar this-is-the-master t) > > And appropriate hackery in the .emacs. Is there a nicer way to deal with > this? > You might be interested in the page on the emacswiki about this [1]. My config is detailed on there (along with lots of other peoples' solutions!). The one thing that I use that I really like is a function called delete-frame-ex, which is hopefully below