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

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

Setting geometry for second frame ??


From: William Case
Subject: Setting geometry for second frame ??
Date: Sat, 12 Sep 2009 08:03:29 -0400

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?
 
-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 23.1.1





reply via email to

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