all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Chengqi(Lars) Song" <songcq@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: "emacs --daemon" does not load init file
Date: Wed, 26 Nov 2008 10:42:53 +0800	[thread overview]
Message-ID: <20081126024253.GB8112@lars-x200s> (raw)
In-Reply-To: <87y6z7614u.fsf@thinkpad.tsdh.de>

I changed the frame related settings to:

(add-hook 'window-setup-hook
         (lambda nil
            ;; font setting
            (set-default-font "Bitstream Vera Sans Mono-10")
            (set-fontset-font (frame-parameter nil 'font)
              'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp"))
            ;; window positioning
            (setq default-frame-alist '((top . 0) (left . 0) (width . 100) (height . 40)))
          )) 
Now emacs-daemon can startup without any error message:
  loading.....  
  loading.....
  loading.....
  starting emacs daemon....

But then I found emacsclient -c can not connect to emacs daemon, and "ps ax|grep emacs" returns nothing. That means emacs daemon failed to startup...  It's so wierd, and I don't know why...

On Tue, 25 Nov 2008, Tassilo Horn wrote:
> As I've said in <87od03j3vf.fsf@thinkpad.tsdh.de> there's no initial
> frame when starting emacs as daemon, so you cannot get frame parameters.
> Maybe adding the code to `window-setup-hook' will work.  Or simply use
> `M-x customize-face' for font settings.
> 
> Bye,
> Tassilo
> -- 
> Richard Stallman doesn't need it, since he already read the internet.
> 
> 




  reply	other threads:[~2008-11-26  2:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1212.1227617005.26697.help-gnu-emacs@gnu.org>
2008-11-25 13:27 ` "emacs --daemon" does not load init file Richard Riley
2008-11-25 13:59   ` Richard Riley
2008-11-25 16:08   ` Chengqi(Lars) Song
2008-11-25 19:45     ` Tassilo Horn
2008-11-26  2:42       ` Chengqi(Lars) Song [this message]
2008-11-26  7:43         ` Adding toolbar buttons Maindoor
2008-11-26 13:18           ` Maindoor
2008-11-25 22:44     ` "emacs --daemon" does not load init file Peter Dyballa
2008-11-25  8:51 Chengqi(Lars) Song
2008-11-25 14:07 ` Tassilo Horn

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=20081126024253.GB8112@lars-x200s \
    --to=songcq@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.