all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rupert Swarbrick <rswarbrick@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Start the emacs-server once...
Date: Fri, 22 Aug 2008 01:26:42 +0100	[thread overview]
Message-ID: <g8l145$fpe$1@news.albasani.net> (raw)
In-Reply-To: mailman.17232.1219324446.18990.help-gnu-emacs@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 753 bytes --]

Alex Bennee <ajb-ml@cbnl.com> 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


[-- Attachment #1.2: delete-frame-ex.el --]
[-- Type: application/emacs-lisp, Size: 653 bytes --]

[-- Attachment #1.3: Type: text/plain, Size: 369 bytes --]


I bind this to C-x C-c, which means that you can call the "magic emacs"
command on a load of files, edit them in different frames and when you
hit C-x C-c, you don't kill something you were working on in a different
desktop. For me, this is at least as important as spawning the frames in
the first place!

Rupert


[1] http://www.emacswiki.org/cgi-bin/wiki/GnuClient

[-- Attachment #2: Type: application/pgp-signature, Size: 314 bytes --]

       reply	other threads:[~2008-08-22  0:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.17232.1219324446.18990.help-gnu-emacs@gnu.org>
2008-08-22  0:26 ` Rupert Swarbrick [this message]
2008-08-21 11:55 Start the emacs-server once Alex Bennee
2008-08-21 14:41 ` Allan Gottlieb
  -- strict thread matches above, loose matches on Subject: below --
2008-08-20 12:48 Alex Bennee

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='g8l145$fpe$1@news.albasani.net' \
    --to=rswarbrick@gmail.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.