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: "emacs --daemon" does not load init file Date: Tue, 25 Nov 2008 14:59:01 +0100 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227624188 13344 80.91.229.12 (25 Nov 2008 14:43:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 14:43:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 15:44:12 2008 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 1L4z8z-0004XZ-F4 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 15:44:01 +0100 Original-Received: from localhost ([127.0.0.1]:38352 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4z7p-0001KG-Tq for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 09:42:49 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.motzarella.org U2FsdGVkX1/C7FSAbpDtJi+sg2sGwqXa4Pa23D+I1hyb2j5ck+CLUWfSg5hypReew8cTpfjZKCtK505rbxeebLdSpCORK+K9UvP3ERT49ErMpCCH+hDEXwEmgVC437gVju+rOk1eZCo4qYCxzAVrzA== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Tue, 25 Nov 2008 13:59:43 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/GNOJI91tfLyP23YY5awNh/SOxVx+HbMdiqKfprdEdgA== Cancel-Lock: sha1:Y4ryHQun/CcmUNWGXj9Ajx3qyI8= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:164759 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:60089 Archived-At: Richard Riley writes: > "Chengqi(Lars) Song" writes: > >> Hi, >> >> I'm using emacs23 snapshot, now it has a fancy function "emacs >> --daemon" to run emacs in background. But when I use "emacsclient -c" >> to connect to the daemon, I found that my ~/.emacs is not >> loaded. That's so bad, is there anyone experienced in emacs daemon? >> Thanks. >> >> best >> lars > > using CVS emacs, I use "emacs -daemon" and it executes the .emacs or > init fine. "--" or "-" both seem to work from a bash shell btw. > > Are you sure there is no error in your .emacs? Did you run emacs -daemon > from the command line where you can see any error output? > > Just to be sure - you dont expect emacs -c to run the .emacs? ^^^^^^^^^^^^^^^^^^^^^ I meant : "emacsclient -c" And if Debian based Linux : And did you be sure to run "sudo update-alternatives --config" for emacs and emacsclient?