[PLUG] Setting initinal/default emacs frame size

Ali Corbin ali.corbin at gmail.com
Tue Aug 13 18:08:55 UTC 2019


On Tue, Aug 13, 2019 at 9:31 AM Rich Shepard <rshepard at appl-ecosys.com>
wrote:

> I'm running emacs-26.2. My web searches for setting the initial/default
> frame size find elisp solutions for ~/.emacs, but so far all of them are
> apparently for earlier versions and use deprecated syntax. So far I've
> tried
> a half-dozen solutions and they do either nothing or emacs tells me there's
> an initiation error.
> For the 19" square HP monitor I want the emacs frame to be 95px wide and
> 50px tall.
>

Have you tried using X to accomplish this?
Putting:
 emacs*geometry: widthxheight[+/-off+/-off]
into ~/.Xresources or ~/.Xdefaults or where such things are read on your
computer.

One caveat is that, seeing that emacs is a text application, X will
probably assume that the width and height are in characters instead of
pixels.  And you'll have to translate your desired pixel dimensions.



More information about the PLUG mailing list