all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How can I automatically determine the best frame-height?
@ 2021-04-20 21:45 David Karr
  2021-04-20 21:50 ` Joost Kremers
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: David Karr @ 2021-04-20 21:45 UTC (permalink / raw)
  To: help-gnu-emacs

In my .emacs file, I have code like the following at the top:
-------------
(set-frame-position (selected-frame) 0 0)
(set-frame-height (selected-frame) 68)
--------------

I typically run on a Windows 10 laptop, connecting to an external monitor.
The frame height of 68 works out to put the status line just above the
Windows status bar, when connecting to my usual monitor.

Sometimes, I run the laptop without an external monitor. In that case, that
startup code is a little annoying, as I then have to shrink and move the
window a few times until I get it in the right position.

Is there a better way to do this, so it will just automatically size itself
so that the top is at the top of the screen, and the bottom is snug against
the status bar?

I normally run this on Cygwin, but I run the same .emacs file on my Ubuntu
VM running on the same laptop.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-04-22 12:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20 21:45 How can I automatically determine the best frame-height? David Karr
2021-04-20 21:50 ` Joost Kremers
2021-04-20 22:40 ` [External] : " Drew Adams
2021-04-21 15:06 ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-21 15:19   ` Jean Louis
2021-04-21 19:42     ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-21 20:48       ` Jean Louis
2021-04-21 20:56       ` Jean Louis
2021-04-22 12:39         ` Wayne Harris via Users list for the GNU Emacs text editor
2021-04-22  9:24       ` Robert Pluim

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.