From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Programmatically maximize Emacs during startup? Date: Fri, 04 Dec 2020 08:38:38 +0100 Message-ID: <87sg8mqary.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40328"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 27.1.50 Cc: help-gnu-emacs@gnu.org To: David Masterson Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 04 08:41:35 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl5ig-000APU-S1 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 08:41:34 +0100 Original-Received: from localhost ([::1]:51354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kl5if-0003Ss-T6 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 02:41:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl5ht-0003Dl-EH for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 02:40:45 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:50893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kl5hp-0004X8-O6 for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 02:40:45 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B28725C020C; Fri, 4 Dec 2020 02:40:40 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 04 Dec 2020 02:40:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm1; bh=uUwIK+UFPfetBEBTqIOqZyTtSS b7uXhnrSs+MulVL+Y=; b=mS9EYdjwCF3GmWL8BUmARtDrmfZuSYNnohAt8HNvX2 VDFYhXO/daJmQCrbH2+hMxS9GTVq70ueeF+h9GFwXnhtt9sMB21nR6e62Sz3AQI/ HB4L7JIbUxL/DqQyT7ZsQtNaS/hwiAhJsRehC8m7/DUz/6qYtAGtP8+Y13UqcGFO WqLTCnmjO+W0RFAscxIlW+qzh9iLBOin3zLosD6ci/OBzOvpHy8spqJf2KylM0J8 G1elKG5RKF1ZCxVFodvNpKW+drcOuk4h0U5wzmBjE/SkeP37bcC92b46cFRlO/RT FeLE/dz+eGGKsoQA7+Bb/QrbvOR+LeU0CS4z5xSoqYwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=uUwIK+ UFPfetBEBTqIOqZyTtSSb7uXhnrSs+MulVL+Y=; b=fG3edQ8Ljgck8YUKsoKsBE tb4pLtrTWahlnCbPlTX4Dn9C99286YPWMTsIHXzTEuG46spJP0lPBXA26aIXjcOD 3o5MPG/jJAGHlKs8VIZ5d7f5p8G22f549ZgfEkXuQeUhg5H0vjTUVbQVPLqshJTY vBEaZAnv8niHTm0Y+NgjiLhhGEedEltWDulrcuCsmTI7psoR/s0ZDEWQmti2GYXD 2wNGDmSw5SmVPtfuRyVXgpCEGy3VYr3XbB3cyb5DeB5aRQ7HDdS89RuUGhP61RDm s32OMfO7q8TH6KCzf+ENbZXyUNrLxMyUrIbnt9zaiyThXcNfyVSwgPLg8F9yg/YA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeijedgudduudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvdeihfetueevkeduteehudeihedvlefgieejhedvteef geelleehhfejudeijeevnecukfhppeelhedrledtrddvvdegrddvtddtnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip5f5ae0c8.dynamic.kabel-deutschland.de [95.90.224.200]) by mail.messagingengine.com (Postfix) with ESMTPA id DBCA3240059; Fri, 4 Dec 2020 02:40:39 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=66.111.4.28; envelope-from=joostkremers@fastmail.fm; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125964 Archived-At: On Fri, Dec 04 2020, David Masterson wrote: > I'm an old Emacs from before window systems, so I do most of my work in > one (maybe two) frames on my laptop. Old eyes don't see as well as they > used to, so I invariably use a slightly larger font and hit the maximize > button. I've configured my font -- now how do I maximize from within my > startup file. 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. In `early-init.el`, you only see the maximised frame. -- Joost Kremers Life has its moments