all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Programmatically setting the frame size and position
@ 2014-11-20  2:46 Davin Pearson
  2014-11-20  3:12 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Davin Pearson @ 2014-11-20  2:46 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-12-01 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-20  2:46 Programmatically setting the frame size and position Davin Pearson
2014-11-20  3:12 ` Drew Adams
2014-12-01  1:03 ` Davin Pearson
2014-12-01 10:07 ` Pascal J. Bourguignon

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.