unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* get current frame size?
@ 2015-10-12 11:51 Sivaram Neelakantan
  2015-10-12 13:04 ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Sivaram Neelakantan @ 2015-10-12 11:51 UTC (permalink / raw)
  To: help-gnu-emacs


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
 -- 




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

end of thread, other threads:[~2015-10-12 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 11:51 get current frame size? Sivaram Neelakantan
2015-10-12 13:04 ` Michael Heerdegen
2015-10-12 13:24   ` Drew Adams

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).