From: Wang Lei <wanglei.198112@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Setting geometry for second frame ??
Date: Sun, 13 Sep 2009 10:13:54 +0800 [thread overview]
Message-ID: <a0a0cf140909121913r439a4a55u843dbd8291791f55@mail.gmail.com> (raw)
In-Reply-To: <h8gqeu$hqc$1@ger.gmane.org>
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
next prev parent reply other threads:[~2009-09-13 2:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-12 12:03 Setting geometry for second frame ?? William Case
2009-09-12 18:49 ` Kevin Rodgers
2009-09-13 2:13 ` Wang Lei [this message]
2009-09-13 19:10 ` Setting geometry for second frame ?? [SOLVED - with Thanks] William Case
[not found] ` <mailman.6599.1252869121.2239.help-gnu-emacs@gnu.org>
2009-09-13 19:50 ` Joost Kremers
2009-09-14 14:22 ` William Case
-- strict thread matches above, loose matches on Subject: below --
2009-09-12 12:24 Setting geometry for second frame ?? martin rudalics
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=a0a0cf140909121913r439a4a55u843dbd8291791f55@mail.gmail.com \
--to=wanglei.198112@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.