all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Programmatically setting the frame size and position
Date: Sun, 30 Nov 2014 17:03:03 -0800 (PST)	[thread overview]
Message-ID: <e274aac3-6b89-4f42-a944-2cd00d60235b@googlegroups.com> (raw)
In-Reply-To: <11d97ae3-a07f-440f-970d-cfebbe9a5026@googlegroups.com>

On Thursday, November 20, 2014 3:46:08 PM UTC+13, Davin Pearson wrote:
> 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.

Thanks for your help.  I personally prefer to use Emacs
windows rather than frames as windows are easier to manipulate.


  parent reply	other threads:[~2014-12-01  1:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=e274aac3-6b89-4f42-a944-2cd00d60235b@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.