all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: David Karr <davidmichaelkarr@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How can I automatically determine the best frame-height?
Date: Tue, 20 Apr 2021 23:50:45 +0200	[thread overview]
Message-ID: <87mttsbowu.fsf@fastmail.fm> (raw)
In-Reply-To: <CAA5t8Vo5o1oz7JqtDw1uX_PHQVviyr7pKbwSZXXeNdacU=WjNQ@mail.gmail.com>


On Tue, Apr 20 2021, David Karr wrote:
> 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?

Can't you simply maximise the frame? You can achieve this automatically by
putting the following in your init file:

    (add-to-list 'default-frame-alist '(fullscreen . maximized))

If you're running Emacs 27, it's even better to put it in `early-init.el`.

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

It should work for both. TBH, though, I do not know (and cannot test) whether
this will cause the Emacs frame to cover the OS's status bar/panel/dock
(whatever it's called).

HTH

-- 
Joost Kremers
Life has its moments



  reply	other threads:[~2021-04-20 21:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-20 21:45 How can I automatically determine the best frame-height? David Karr
2021-04-20 21:50 ` Joost Kremers [this message]
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

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=87mttsbowu.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=davidmichaelkarr@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.