help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I automatically determine the best frame-height?


From: Robert Pluim
Subject: Re: How can I automatically determine the best frame-height?
Date: Thu, 22 Apr 2021 11:24:40 +0200

>>>>> On Wed, 21 Apr 2021 16:42:55 -0300, Wayne Harris via Users list for the 
>>>>> GNU Emacs text editor <help-gnu-emacs@gnu.org> said:
    >> (add-to-list 'default-frame-alist '(fullscreen . maximized))

    Wayne> I added it to site-start.el.  It takes effect.  I don't like it
    Wayne> maximized, though.  I just wish it'd stick to the height of the 
initial
    Wayne> frame, which I set with -fh on the command line.

    Wayne> I looked up the manual and came up with

    Wayne>   (add-to-list 'default-frame-alist '(height . 0.90))

    Wayne> where 90% is about right for me, but this has the side-effect that 
the
    Wayne> initial-frame is not full-height any longer, that is, this undoes the
    Wayne> order given by -fh on the command line.

You can specify parameters that apply only to the first frame using
'initial-frame-alist' (and then not specify -fh on the command line).

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]