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

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

Re: set window size on init


From: Xah Lee
Subject: Re: set window size on init
Date: Wed, 11 Nov 2009 13:01:47 -0800 (PST)
User-agent: G2/1.0

On Nov 11, 12:32 am, Kiwon Um <um.ki...@gmail.com> wrote:
> On Nov 11, 4:57 am, Xah Lee <xah...@gmail.com> wrote:> i have, at the end of 
> my .emacs this code:
>
> > ; set window size to 100x58 chars.
> > (set-frame-size (selected-frame) 100 58)
>
> > however, it doesn't work.
> > But eval-region the code itself would work.
>
> Check default-frame-alist and init-frame-alist, e.g.:
> (setq default-frame-alist '((width . 80) (height . 65)))
> (setq init-frame-alist '((width . 80) (height . 65)))

Thanks all for help. The following works as it should.

(setq default-frame-alist
      '((menu-bar-lines . 1)
        (left-fringe)
        (right-fringe)
        (tool-bar-lines . 0)
        (width . 75)
        (height . 50)
        ))

(setq initial-frame-alist '((width . 100) (height . 50)))

for future reference of later readers, type Ctrl+h v then initial-
frame-alist will give you good doc.

  Xah
∑ http://xahlee.org/

reply via email to

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