all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: where to start emacs --deamon in debian?
Date: Sun, 06 Dec 2009 16:16:44 +0100	[thread overview]
Message-ID: <hfghst$fsd$1@ger.gmane.org> (raw)
In-Reply-To: 26664977.post@talk.nabble.com

barriehie <barriehie@bluebottle.com> writes:

> Jonas Stein wrote:
>> 
>> Hi 
>> 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?
>> 
>> kind regards,
>> Jonas
>> 
>
> I agree with the prior posts re: not starting the process via system init
> files!  The wiki has an article on doing just that if you must.  Personally
> I've got (server-start) in my .emacs and thereafter every file is opened
> with the client. 

Only if you issue emacsclient as the command. However, there is no need
with emacs 23 to specifically do a server start. Just set your editor
env to something like "edit" where edit is a small bash script like
this:-

,----
| #!/bin/bash
| # edit
| export GDK_NATIVE_WINDOWS=1
| exec emacsclient --alternate-editor="" -c "$@"
`----

NB: the export is to get around a menu bug in emacs 23.

In my .bash_env I have

,----
| export EDITOR="~/bin/edit"
`----

Since you need to emacsclient anyway if you specifically do a
server-start then you might as well issue "edit" or whatever you want it
to be and let emacs take care of it. If the daemon is not running it
automatically starts it for you.





  reply	other threads:[~2009-12-06 15:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-05  1:59 where to start emacs --deamon in debian? 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 [this message]
     [not found] <mailman.12252.1259993777.2239.help-gnu-emacs@gnu.org>
2009-12-05  6:32 ` Teemu Likonen
2009-12-06  0:32   ` Tim X
2009-12-06  0:30 ` Tim X

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='hfghst$fsd$1@ger.gmane.org' \
    --to=rileyrgdev@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.