From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hap 497 Newsgroups: gmane.emacs.help Subject: Re: How can I configure emacs-daemon to kill itself when I shut down my computer Date: Fri, 16 Apr 2010 14:53:27 -0700 Message-ID: References: <878w8n497p.wl%jim@sdf-eu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1271454846 11723 80.91.229.12 (16 Apr 2010 21:54:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 21:54:06 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jim Burton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 16 23:54:05 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O2tU5-0002lI-Hz for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 23:53:58 +0200 Original-Received: from localhost ([127.0.0.1]:49985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2tU4-0000AE-0h for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 17:53:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2tTi-00009p-Hn for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 17:53:34 -0400 Original-Received: from [140.186.70.92] (port=37326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2tTg-00009D-PJ for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 17:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2tTd-00045X-82 for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 17:53:30 -0400 Original-Received: from mail-bw0-f225.google.com ([209.85.218.225]:56678) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2tTc-0003uB-VE for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 17:53:29 -0400 Original-Received: by mail-bw0-f225.google.com with SMTP id 25so3177621bwz.8 for ; Fri, 16 Apr 2010 14:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=VZYLRLjdVw+5UoWtY8kW0C7K3reewqw+RjdKh6AKNzg=; b=VPf34jj1vkgostaIvRAvStRs85tidPUZPBjmsbcBvP1cw7rbaNHZCEvKjiIUp2/stA +6FUDayMsNxWxvRdnEWLJ6+a3J3/BL4OI3hij1Vk/PS83zZAabT6M4KAY5Co9olIUMYA CAt+iV4JztCtfOuWC99//hexYQwpFgeQpHMpk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u2zUJHT7Md3i9DOUoKY27Y4u2y7WqEQmNYihdOd5Bq32HxkcFSxIIJ5ycg6vLG0Zl6 HZZViPXgd8jxjWIxEAxfAm8shCSv/UhsP8LAt3xvOpvbvt8y1fTqCY6wM2u8a0KAKqR4 0THG78bG01b4iKZRyHLBsIs6U5SpxjFVF1q7M= Original-Received: by 10.204.59.195 with HTTP; Fri, 16 Apr 2010 14:53:27 -0700 (PDT) In-Reply-To: <878w8n497p.wl%jim@sdf-eu.org> Original-Received: by 10.204.6.210 with SMTP id a18mr2221500bka.136.1271454807942; Fri, 16 Apr 2010 14:53:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72712 Archived-At: On Fri, Apr 16, 2010 at 10:07 AM, Jim Burton wrote: > At Fri, 16 Apr 2010 03:02:04 -0500, > hap 497 wrote: >> >> Hi, >> >> I am using emacs 23.1 on ubuntu 9.10. >> And I always use emacs-client to open a file and it will creates a >> emacs -daemon when needed. >> My problem is everything I shut down my ubuntu environment, it asks me >> if I want to kill emacs damon. And I have to manually click 'Close' in >> order for the shut down to continue. >> >> Is there anyway to automatic this? >> > You want to start the daemon on login rather than via emacsclient. I'm > not using ubuntu but IIRC this can be done under > System/Preferences/Customize Session, or something like that, where > you can add 'emacs --daemon' to the list of programs to start after > logging in. > I tried this. It does start the emacs daemon. But when I exit ubuntu, it still said 'there is a emacs daemon running do you want to shut it down' dialog pops up. And i would like to get rid to that dialog everytime I log out. Thank you. > Jim > >> Thank you. >> > > -- > J Burton >