From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Programmatically setting the frame size and position
Date: Wed, 19 Nov 2014 18:46:05 -0800 (PST) [thread overview]
Message-ID: <11d97ae3-a07f-440f-970d-cfebbe9a5026@googlegroups.com> (raw)
I would like to know how you go about setting the
size and position of a given frame using Elisp instead
of the mouse.
I am interested in using the speedbar.el but it currently
appears in a maximised state.
I don't want to use the mouse to resize and reposition
the frames so that they sit beside each other every
time I start speedbar.el
Here is the Elisp code that I have written (based on the built in
Emacs manual) but doesn't work.
(progn
(setq fc (current-frame-configuration))
(setq w (assq 'width (cadadr fc))
(setcdr w 20)
(set-frame-configuration fc))
What code do I need to write to get it to work?
Please advise me as I am stuck at the moment.
next reply other threads:[~2014-11-20 2:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 2:46 Davin Pearson [this message]
2014-11-20 3:12 ` Programmatically setting the frame size and position Drew Adams
2014-12-01 1:03 ` Davin Pearson
2014-12-01 10:07 ` Pascal J. Bourguignon
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=11d97ae3-a07f-440f-970d-cfebbe9a5026@googlegroups.com \
--to=davin.pearson@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.