all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: where to start emacs --deamon in debian?
Date: Sun, 06 Dec 2009 11:32:56 +1100	[thread overview]
Message-ID: <87ocmd9c1z.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 87iqcmorr5.fsf@iki.fi

Teemu Likonen <tlikonen@iki.fi> writes:

> On 2009-12-05 02:59 (+0100), Jonas Stein wrote:
>
>> what is the best way to start emacs --deamon in a debian (testing)
>> system? Should i put it in a selfmade init script to /etc/init.d or
>> into /etc/profiles or some elsewhere?
>
> I suggest using emacsclient with -a '' option. It connects to the daemon
> or starts it if it's not running already. For example, I have Bash alias
>
>     alias em="emacsclient -t -a '' --"
>
> and my KDE has a shortcut key which executes command
>
>     emacsclient -c -n -a ''

Yep, thats the way to do it IMO. No hassles with scripting to ensure it
isn't already running, no complications with issues in your .emacs
screwing up your startup scripts etc. Nice and simple and easy to
maintain and lets emacs to all the heavy lifting!

Tim
-- 
tcross (at) rapttech dot com dot au


  reply	other threads:[~2009-12-06  0:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12252.1259993777.2239.help-gnu-emacs@gnu.org>
2009-12-05  6:32 ` where to start emacs --deamon in debian? Teemu Likonen
2009-12-06  0:32   ` Tim X [this message]
2009-12-06  0:30 ` Tim X
2009-12-05  1:59 Jonas Stein
2009-12-05 10:09 ` Peter Dyballa
2009-12-05 11:00 ` Daniel Dalton
2009-12-06 13:25 ` barriehie
2009-12-06 15:16   ` Richard Riley

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=87ocmd9c1z.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.