Default Window Size
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Default Window Size         


Author: stephan.zimmer
Date: Sep 12, 2008 00:13

Hallo all,

is there any way to set the default window size of emacs in .emacs?
I.e. to achieve the same effect as starting with --geometry=width x
height? If not, is there any workaround for that, i.e., placing some
default command line options in an environment variable?

For a given window, is there any way to locally restrict the width to
a certain value? I.e., say the window has width 200, but in a certain
buffer I don't want to exceed the 80 signs limit.

Thanks a lot. Best,

Stephan
3 Comments
RE: Default Window Size         


Author: Drew Adams
Date: Sep 12, 2008 06:55

> is there any way to set the default window size of emacs in .emacs?
> I.e. to achieve the same effect as starting with --geometry=width x
> height? If not, is there any workaround for that, i.e., placing some
> default command line options in an environment variable?
>
> For a given window, is there any way to locally restrict the width to
> a certain value? I.e., say the window has width 200, but in a certain
> buffer I don't want to exceed the 80 signs limit.

Customize option `default-frame-alist'. See the Emacs manual, keeping in mind
that what you call "window" (a window-manager window) is called a "frame" in
Emacs.
no comments
Re: Default Window Size         


Author: Esteban Fornal
Date: Sep 12, 2008 07:06

2008/9/13 Drew Adams oracle.com>
>> is there any way to set the default window size of emacs in .emacs?
>> I.e. to achieve the same effect as starting with --geometry=width x
>> height? If not, is there any workaround for that, i.e...
Show full article (1.68Kb)
1 Comment
Re: Default Window Size         


Author: Oleksandr Gavenko
Date: Sep 12, 2008 10:49

> (set-frame-position (selected-frame) 100 10)
> (set-frame-height (selected-frame) 48)
> (set-frame-width (selected-frame) 100)
This customization I also use.
In Debian 4.0 I get about 5 sec delay on emacs start up
(on Windows - ok), but feature very useful.
There is exist way edit .Xdefault if you on UNIX
(analogue as set up env var), man can help how it do.

Another related question: how to fit emacs windows to all screen size?
no comments

RELATED THREADS
SubjectArticles qty Group
Windows XP and Windows Vista ExpertZone chat tomorrow, June 5th 10am PSTmicrosoft.public.windows.vista.mail ·
ANN: Windows Vista SP1 IS On Microsoft Windows Vista Connect, Just FYI.microsoft.public.windows.vista.general ·