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

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

Re: Setting geometry for second frame ??


From: Wang Lei
Subject: Re: Setting geometry for second frame ??
Date: Sun, 13 Sep 2009 10:13:54 +0800

Maybe you can have a look at

default-frame-alist and initial-frame-alist.

On 9/13/09, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> William Case wrote:
>> Hi;
>>
>> How do you set the size of a secondary frame?
>>
>> My Xresources file is set to 'Emacs.Geometry: 80x55+96+35'.  That size,
>> generally speaking, is the default size I am most comfortable with.
>> However, I have a key binding that opens a second frame containing a
>> text file in which I keep my notes as I am working.
>>
>> (global-set-key [(super f1)] (lambda()
>>      (interactive)(find-file-other-frame
>> "~/Documents/C/Text/C-Notes.txt")))
>>
>> I want this second frame to open with a geometry of 75x55 so that I can
>> fit two frames, side-by-side, on my desktop.  I don't want to change my
>> Xresources file unless there is a safe way to write a conditional
>> command in Xresources, nor compromise on my default setting.
>>
>> Is there a way to do this using a key binding to an existing function or
>> do I have to write my own function?  If I have to write my own function,
>> could you outline which functions and/or variables I might need to use?
>
> (let ((default-frame-alist `((height . 75) (width . 55)
> ,@default-frame-alist)))
>    (find-file-other-frame "~/Documents/C/Text/C-Notes.txt"))
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
>
>
>
>


-- 
Regards
Lei




reply via email to

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