From: Pankaj Jangid <pankaj@codeisgreat.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Programmatically maximize Emacs during startup?
Date: Fri, 04 Dec 2020 18:56:25 +0530 [thread overview]
Message-ID: <m2pn3pitxa.fsf@codeisgreat.org> (raw)
In-Reply-To: <83r1o5ergc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Dec 2020 13:33:23 +0200")
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
next prev parent reply other threads:[~2020-12-04 13:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-04 3:42 Programmatically maximize Emacs during startup? David Masterson
2020-12-04 4:04 ` Christopher Dimech
2020-12-04 8:34 ` Eli Zaretskii
2020-12-04 15:03 ` Christopher Dimech
2020-12-05 3:05 ` David Masterson
2020-12-05 3:11 ` Christopher Dimech
2020-12-04 6:12 ` Jean Louis
2020-12-04 6:59 ` Thien-Thi Nguyen
2020-12-05 3:09 ` David Masterson
2020-12-05 10:06 ` Thien-Thi Nguyen
2020-12-06 2:05 ` David Masterson
2020-12-06 2:38 ` Michael Heerdegen
2020-12-06 9:17 ` Marcin Borkowski
2020-12-06 22:35 ` Michael Heerdegen
2020-12-04 7:38 ` Joost Kremers
2020-12-04 7:48 ` Jean Louis
2020-12-04 11:33 ` Eli Zaretskii
2020-12-04 13:26 ` Pankaj Jangid [this message]
2020-12-05 3:10 ` David Masterson
2020-12-05 4:21 ` David Masterson
2020-12-05 5:07 ` Pankaj Jangid
2020-12-06 2:03 ` David Masterson
2020-12-12 1:19 ` byte compiler, `modify-face', and "Programmatically" (was: Re: Programmatically maximize Emacs during startup?) Emanuel Berg via Users list for the GNU Emacs text editor
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=m2pn3pitxa.fsf@codeisgreat.org \
--to=pankaj@codeisgreat.org \
--cc=eliz@gnu.org \
--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.