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

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

Re: Programmatically maximize Emacs during startup?


From: Pankaj Jangid
Subject: Re: Programmatically maximize Emacs during startup?
Date: Fri, 04 Dec 2020 18:56:25 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

Eli Zaretskii <eliz@gnu.org> writes:

>> I have the following line in my `~/.emacs.d/early-init.el`:
>> 
>>     (add-to-list 'default-frame-alist '(fullscreen . maximized))
>> 
>> It works in `~/.emacs.d/init.el` as well, but then the frame is first drawn 
>> and
>> subsequently maximised.
>
> Did you try to do this in window-setup-hook or emacs-startup-hook?

I also tried it in window-setup-hook and emacs-startup-hook. But first
it is drawn with built-in default values and then default-frame-alist
parameters comes into effect.

So I moved my following setting to early-init.el. It works fine there.

#+begin_src emacs-lisp
(setq default-frame-alist
       '((vertical-scroll-bars . nil)
         (horizontal-scroll-bars . nil)
         (height . 55)
         (width . 174)
         (left . 613)
         (top . 391)
         (tool-bar-lines . 0)))
#+end_src



reply via email to

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