From: Sivaram Neelakantan <nsivaram.net@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: get current frame size?
Date: Mon, 12 Oct 2015 17:21:28 +0530 [thread overview]
Message-ID: <87612c8fun.fsf@gmail.com> (raw)
I end up working with different monitors and each time I end up doing
a trail and error method to get the right frame size for Emacs that
covers the width of the screen and 80% of the height. Note that I
don't want a fullscreen mode which I can invoke from the command
line. Is there a way to query the current frame to return the
dimensions so that I can plug it in my .Emacs?
Something like
(if (window-system) (set-frame-size (selected-frame) 124 40))
where the last 2 numbers seem to change for laptop screen
sivaram
--
next reply other threads:[~2015-10-12 11:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 11:51 Sivaram Neelakantan [this message]
2015-10-12 13:04 ` get current frame size? Michael Heerdegen
2015-10-12 13:24 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87612c8fun.fsf@gmail.com \
--to=nsivaram.net@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).