help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] screen size through elisp?


From: Michael Hotchin
Subject: RE: [h-e-w] screen size through elisp?
Date: Fri, 26 Oct 2001 15:40:47 -0700

on 20.7.1, I do the following:

;;  Get the screen into a sane state before we really get rolling...
(set-default-font "-*-Lucida console-bold-r-*-*-12-72-*-*-c-*-*-ansi-")
(set-frame-position (selected-frame) 0 0)
(set-frame-size (selected-frame)
                (- (/ (x-display-pixel-width) (frame-char-width)) 1)
                (- (/ (x-display-pixel-height) (frame-char-height) ) 4))
(sit-for .1)

The '1' and '4' account for the left-right and top-bottom margins, respectively.

        Mike H.

-----Original Message-----
From: Adam Doppelt [mailto:address@hidden
Sent: Friday, October 26, 2001 2:23 PM
To: Emacs List (E-mail)
Subject: [h-e-w] screen size through elisp?


RE: [h-e-w] emacs 21.1 problem with -nwDoes anyone know how to access the
screen size through elisp? I'd like to make my default frame position/size a
bit more flexible.

Thanks,

Adam





reply via email to

[Prev in Thread] Current Thread [Next in Thread]