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: Kevin Rodgers
Subject: Re: Setting geometry for second frame ??
Date: Sat, 12 Sep 2009 12:49:02 -0600
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

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





reply via email to

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