From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: where to start emacs --deamon in debian? Date: Sun, 06 Dec 2009 16:16:44 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <8crou6-3l4.ln1@news.jonasstein.de> <26664977.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260112666 17252 80.91.229.12 (6 Dec 2009 15:17:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 15:17:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 16:17:39 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHIri-0005yH-Ss for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 16:17:39 +0100 Original-Received: from localhost ([127.0.0.1]:41894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHIri-00029O-Ho for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 10:17:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHIrK-000291-Iw for help-gnu-emacs@gnu.org; Sun, 06 Dec 2009 10:17:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHIrF-000270-S1 for help-gnu-emacs@gnu.org; Sun, 06 Dec 2009 10:17:14 -0500 Original-Received: from [199.232.76.173] (port=51744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHIrF-00026x-OX for help-gnu-emacs@gnu.org; Sun, 06 Dec 2009 10:17:09 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:46844) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHIrF-00052C-AI for help-gnu-emacs@gnu.org; Sun, 06 Dec 2009 10:17:09 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NHIrC-0005jY-ON for help-gnu-emacs@gnu.org; Sun, 06 Dec 2009 16:17:06 +0100 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Dec 2009 16:17:06 +0100 Original-Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Dec 2009 16:17:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70460 Archived-At: barriehie 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.