From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Masterson Newsgroups: gmane.emacs.help Subject: Re: Programmatically maximize Emacs during startup? Date: Fri, 04 Dec 2020 20:21:09 -0800 Message-ID: References: <87sg8mqary.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 05 05:37:10 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 1klPJl-0001ye-AN for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 05:37:09 +0100 Original-Received: from localhost ([::1]:54694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klPJk-0006QR-Ap for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 23:37:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klPJ0-0006Px-M0 for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 23:36:22 -0500 Original-Received: from mail-oln040092011084.outbound.protection.outlook.com ([40.92.11.84]:36512 helo=NAM04-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klPIt-0006jl-Og for help-gnu-emacs@gnu.org; Fri, 04 Dec 2020 23:36:22 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YgBV7Bu1OR18A//ULghlTcAlhzKiex6I2yejLOZAgU9UVcgT0P4zDBOYq9RFx98LqXAG2L6hWeE5rwDlciTxZTtztoDq3iJlE2fuGnDVI+hscTwgKsZRpmcNe4OR/WY1EaC0GAt7B0EkNN28ieYdq37lFFjeR785nykAgGaUiBKAYdpBTAByD+6ju1XDQqi3FqwTerqYHYFH3tJtzf4VjASZ1guXjPPU9yGUioyi3RQ2BjaNdeOVdkoY2VQBywk7VLr5D9Qa0I99oV11kmIAIlBeRZvP+8HTaP66YGG8jiH6Bt6v1DajG6+2TbdlVi10y74zcd5lyfMEgOIsqEtLRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v0/VZomFBA/uCJPQVlCfI7PoJl5JlIEtAfhGh49IR5o=; b=RY6B3gRXCUCxjWJR8wpkIfTkGSMsKueXgYktGO2YRO3WMGnvZEFRYG5adb9V3AyDprQj7z4wzEqIY3w8SChxCFYhp6Jd0bYw8Fo53GkLDOF6y5xOhcawe9lp32GNTaGay0+tBKGHj0QB2WXfUMNgvRMxUv3m5sgKtJ623mRNGNYw3azUdWjSx3czCCKG17INMlgs36UNMgCSfV59ZYIc6Eur+gs1oFWM3aBbSp3LGwWQiE10PUAn99C8IWRFc6df0/krKyhwcRmMmQhM/q/TGsgwiw1KMMXYxdCm7R+wC1/niyt5UpEPqZvKzEJEmQqFEL3RLn0nJFCErpS1WmVY9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v0/VZomFBA/uCJPQVlCfI7PoJl5JlIEtAfhGh49IR5o=; b=erOuE/BmmI8xHbuH7kWsYoj5wiKAJdlAqAkLCOcVQ3j3v/aIXqoYt4TyEPdO/ph92MQakXHcqNHHtG1/NnTCnyaOdMZ5dYJcm7NU7n4jw/npqWuMjHtbsg9Ng4bCG+z7OrzO3YaDBDH3YyHbx7vT64IZHQXUNSEgDGTFMbChr640ho6u9rWezP6wFZ1rTot9pUVK5RLAoCyfuZV5djiJWO2cmiDCwjjvke8ZIiDXi7JJEfiND4KYABoTc5LfnDWGhbfhy2XfN8ujkHsoybpCG6Wz3dYDVByeDW78GZra8EF08tdb53y64zeb4uNcOkpsV2AF2K1ptlL2UXDVSBQ1uQ== Original-Received: from DM6NAM04FT022.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7ea3::4b) by DM6NAM04HT009.eop-NAM04.prod.protection.outlook.com (2a01:111:e400:7ea3::152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.25; Sat, 5 Dec 2020 04:21:11 +0000 Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2a01:111:e400:7ea3::53) by DM6NAM04FT022.mail.protection.outlook.com (2a01:111:e400:7ea3::307) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21 via Frontend Transport; Sat, 5 Dec 2020 04:21:11 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:37A2040E9DC2574052BF24390C4518761EE9296E1FA1F772076DF0977B14CEE0; UpperCasedChecksum:DDE4E66458985B3958BF237C104DCF4C67BB27976687045B014544C684EF5337; SizeAsReceived:7741; Count:46 Original-Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::5484:196d:9c99:fa81]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::5484:196d:9c99:fa81%5]) with mapi id 15.20.3632.019; Sat, 5 Dec 2020 04:21:11 +0000 In-Reply-To: (David Masterson's message of "Fri, 04 Dec 2020 19:10:51 -0800") X-TMN: [MMDDPkzcKy2XPFphoCqV7D3g3oLYKuGtnoAxZLtEYq8N7PUmRNuvQkcZtgZme40C] X-ClientProxiedBy: BY5PR04CA0004.namprd04.prod.outlook.com (2603:10b6:a03:1d0::14) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <874kl0annu.fsf@outlook.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from penguin (2600:8802:500:419:216:3eff:fee7:3d5d) by BY5PR04CA0004.namprd04.prod.outlook.com (2603:10b6:a03:1d0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Sat, 5 Dec 2020 04:21:10 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e8726f40-af63-4d38-b470-08d898d5324c X-MS-TrafficTypeDiagnostic: DM6NAM04HT009: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9TWAIPPlnNMD4DOkIh3vP0ghS8szVY5CL/z7IWSyHvUvZtvVPPACEbk9Xe9g1BUPE8scBTDZX60eHJrq9LWIk/Mxt/E7JIkVbZisNc+R8AxdcbvSo/J1vbtjqYXFWeVE5E7uIgJfAfz7CR8G88DEL2q+4VDy6dLQl2hb1hrb12ZayIbr5qKlWWMpza3jIRnDE3EbwJEqatTbtOFPBbdN7g== X-MS-Exchange-AntiSpam-MessageData: sAGmTD7RFzhAvWP3uDZDXuPtozrBSTxKC68L091jA4gPMyN2J8PYOf/h3ZwCcRkKT6Q6sXpG5NtKujA1v2ESoZ10VhDEImwASHjt4WRvmh+COuWdQYRXL9GGs4fT+MA4vSI53JPrfJMikbVlHMqyKP/g+nUvuCWYrrGkq0i6ppdCvSHyhn+vlRZKSVCNF8F3fjFBP84LPin2PsQByW5sAA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2020 04:21:11.1681 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-Network-Message-Id: e8726f40-af63-4d38-b470-08d898d5324c X-MS-Exchange-CrossTenant-AuthSource: DM6NAM04FT022.eop-NAM04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM04HT009 Received-SPF: pass client-ip=40.92.11.84; envelope-from=dsmasterson92630@outlook.com; helo=NAM04-SN1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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:126000 Archived-At: David Masterson writes: > Joost Kremers writes: > >> 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. > > Neat! Not so neat -- early-init.el? It doesn't work for me and I don't see it documented in Emacs v26.3 Info files. I assume this is a file run after site-init.el, but before init.el, but it's not documented. Also, I think initial-frame-alist is better for me as my initial frame is my main work area and other frames are temporary popup references. Setting this in my .emacs works as you said. Thanks for the pointer. -- David Masterson