From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: where to start emacs --deamon in debian? Date: Sun, 06 Dec 2009 11:32:56 +1100 Organization: Rapt Technologies Message-ID: <87ocmd9c1z.fsf@lion.rapttech.com.au> References: <87iqcmorr5.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260060172 4573 80.91.229.12 (6 Dec 2009 00:42:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 00:42:52 +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 01:42:45 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 1NH5Cz-0003Js-FE for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 01:42:41 +0100 Original-Received: from localhost ([127.0.0.1]:45434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH5Cz-0004SS-26 for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 19:42:41 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:gx3WSiZYCF5bAspN07PctJL1Fxg= Original-Lines: 25 Original-NNTP-Posting-Host: 069547dc.news.astraweb.com Original-X-Trace: DXC=[b4YngnM@[NlVZHQGRZg_EL?0kYOcDh@JnmNjE4M:dlF; :jf9eidEkB3jG8S6WC]DK@ThRc@Zd6KN Original-Xref: news.stanford.edu gnu.emacs.help:175377 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:70453 Archived-At: Teemu Likonen 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