unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting size of frame
@ 2023-07-12 11:05 uzibalqa
  2023-07-12 12:47 ` Robert Pluim
  0 siblings, 1 reply; 2+ messages in thread
From: uzibalqa @ 2023-07-12 11:05 UTC (permalink / raw)
  To: uzibalqa via Users list for the GNU Emacs text editor


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

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

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





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

* Re: Setting size of frame
  2023-07-12 11:05 Setting size of frame uzibalqa
@ 2023-07-12 12:47 ` Robert Pluim
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Pluim @ 2023-07-12 12:47 UTC (permalink / raw)
  To: uzibalqa; +Cc: help-gnu-emacs

>>>>> 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
-- 



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

end of thread, other threads:[~2023-07-12 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 11:05 Setting size of frame uzibalqa
2023-07-12 12:47 ` Robert Pluim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).