all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Setting initial frame's parameters before its creation
Date: Thu, 28 Feb 2013 22:47:49 -0500	[thread overview]
Message-ID: <jwvk3prhjez.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2ppzjzwhg.fsf@gmail.com> (Leo Liu's message of "Fri, 01 Mar 2013 10:26:19 +0800")

> I am now working with a setup with two screens of different resolutions.
> I would like a way in elisp to change the initial frame's parameters
> before its creation.
> Setting them using x resources seems to be the only way but it could
> only provide good defaults for a fixed resolution and thus breaks down
> with two resolutions as in my case.
> Any suggestions?

I have a local patch which causes Emacs (in GUI sessions) to read the
.emacs because creating the "initial" frame.  You could use something
like that, but it requires recompiling Emacs.

Another option might be to use an emacs daemon, since in this case as
well the .emacs file is read before setting up any GUI frame.


        Stefan



  reply	other threads:[~2013-03-01  3:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-01  2:26 Setting initial frame's parameters before its creation Leo Liu
2013-03-01  3:47 ` Stefan Monnier [this message]
2013-03-01  5:14   ` Leo Liu
2013-03-01 14:24     ` Stefan Monnier
2013-03-01 16:34       ` Stefan Monnier
2013-03-01 22:14         ` Xue Fuqiao
2013-03-02  2:55         ` Leo Liu
2013-03-02 12:55         ` Tomasz Gajewski
2013-03-03 10:39           ` Didier Verna
2013-03-03 18:49             ` Tomasz Gajewski
2013-03-03 19:47               ` Didier Verna

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=jwvk3prhjez.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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.