all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Helm <nick@tenpoint.co.nz>
To: <help-gnu-emacs@gnu.org>
Subject: How to use Xresources to specify a frame's pixel size?
Date: Fri, 30 Jun 2017 23:55:08 +1200	[thread overview]
Message-ID: <m2tw2xitb7.fsf@tenpoint.co.nz> (raw)

Hi all,

I recently read about a change to frame parameter syntax in Emacs 25,
specifically one solution to Bug#21415
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21415), which introduced
this syntax:

  (width  . (text-pixels . <width>))
  (height . (text-pixels . <height>))

to specify a pixel width and height in frame parameter commands. 

Other than not finding the syntax documented in the Emacs or Elisp
manuals, this seems to work well. 

However, I like to use Xresources to specify the size of my initial
Emacs frame – typically by setting a character width x height with
something like:

  "Emacs.geometry" = 200x50;

in my local org.gnu.emacs.plist file.

Can I do something similar to specify a pixel width x height for my
initial Emacs frame? If so, how?

Note that the property list key-value pairs used on macOS seem to
closely align with the documented Xresource class-resource pairs, so a
solution on any platform would point me in the right direction.

Thanks.

--
Nick



                 reply	other threads:[~2017-06-30 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m2tw2xitb7.fsf@tenpoint.co.nz \
    --to=nick@tenpoint.co.nz \
    --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.