all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: set window size on init
Date: Wed, 11 Nov 2009 13:01:47 -0800 (PST)	[thread overview]
Message-ID: <7d8f6305-a28e-499b-98b5-1e78c48d7285@x25g2000prf.googlegroups.com> (raw)
In-Reply-To: 303a3406-519c-49ef-99cb-495182f2dbd7@b36g2000prf.googlegroups.com

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	other threads:[~2009-11-11 21:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-10 19:57 set window size on init Xah Lee
2009-11-10 20:39 ` despen
2009-11-11  8:32 ` Kiwon Um
2009-11-11 21:01   ` Xah Lee [this message]
2009-11-11 18:31 ` Eli Zaretskii
     [not found] ` <mailman.10516.1257964476.2239.help-gnu-emacs@gnu.org>
2009-11-11 20:05   ` despen
2009-11-14  6:51     ` Jonathan Groll

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7d8f6305-a28e-499b-98b5-1e78c48d7285@x25g2000prf.googlegroups.com \
    --to=xahlee@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.