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: aczarn
Subject: Re: [h-e-w] screen size through elisp?
Date: Sat, 27 Oct 2001 08:52:40 +0800

> 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

hi adam

i have set up my emacs to have 2 screens appear, each of which 
then takes on a number of attributes and sizes. Here is the code
that I use. See how you go.

Andrew
Dr AST Czarn
The University of Western Australia

;;***************************************************************************
(setq initial-frame-alist
   '((top . 2) (left . 3)
     (width . 125) (height . 34)
;;     (background-color .  "lightblue")
;;     (foreground-color .  "navy")
     (background-color .  "white")
     (foreground-color .  "black")
     (cursor-color .  "black")
     (font . "-*-Fixedsys-normal-r-*-*-12-90-*-*-c-*-*-ansi-")))

;; (font . "-*-Courier New-normal-r-*-*-17-102-*-*-c-*-*-ansi-");; 10 pt
;; (font . "-*-Courier New-normal-r-*-*-15-112-*-*-c-*-*-ansi-");; 11 pt
;; (font . "-*-Courier New-normal-r-*-*-16-120-*-*-c-*-*-ansi-");; 12 pt

(setq default-frame-alist
   '((top . 559) (left . 3)
     (width . 125) (height . 9)
;;     (background-color .  "lightblue")
;;     (foreground-color .  "deep pink")
     (background-color .  "white")
     (foreground-color .  "black")
     (cursor-color .  "black")
     (font . "-*-Fixedsys-normal-r-*-*-12-90-*-*-c-*-*-ansi-")))

;; This url, http://w3.trib.com/~ccurley/, has some
;; excellent .emacs lisp and other tips
;;******************************************************************









reply via email to

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