all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: uzibalqa <uzibalqa@proton.me>
Cc: <help-gnu-emacs@gnu.org>
Subject: Re: Setting size of frame
Date: Wed, 12 Jul 2023 14:47:07 +0200	[thread overview]
Message-ID: <87a5w170vo.fsf@gmail.com> (raw)
In-Reply-To: <BFoMmQuwM2oeTEf7bzGJiOrofxzZSeo89vZBfzuKFM4e9J5IogZsE9O91yTmO1c8vxLIfc6xuz8xSpH2jxGDwDonLguaW76GrUISAqxYvhw=@proton.me> (uzibalqa@proton.me's message of "Wed, 12 Jul 2023 11:05:40 +0000")

>>>>> On Wed, 12 Jul 2023 11:05:40 +0000, uzibalqa <uzibalqa@proton.me> said:

    uzibalqa> I want to set the size of a frame by calling a function.

    uzibalqa> Although I have seen the following, I am not sure whether using add-to-list is 
    uzibalqa> the appropriate choice.  I only want the changes to happen in the working frame.   

    uzibalqa> (add-to-list 'default-frame-alist '(width  . 90))
    uzibalqa> (add-to-list 'default-frame-alist '(height . 40))

That modifies the default frame geometry, which will get applied to
new frames. To change the size of an existing frame, use:

     (modify-frame-parameters nil '((width . 90) (height . 40)))

Robert
-- 



      reply	other threads:[~2023-07-12 12:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-12 11:05 Setting size of frame uzibalqa
2023-07-12 12:47 ` Robert Pluim [this message]

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=87a5w170vo.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=uzibalqa@proton.me \
    /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.