From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Newsgroups: gmane.emacs.help Subject: Re: How to *properly* set up Emacs on Windows? Date: Wed, 09 Feb 2022 09:14:20 +0100 Message-ID: <54769654-deda-4087-b569-57e3143c0f02@www.fastmail.com> References: <838rulw5rg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29364"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4748-g31a5b5f50e-fm-cal2020-20220204.001-g31a5b5f5 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 09 09:40:42 2022 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 1nHiWm-0007QM-E2 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 09:40:41 +0100 Original-Received: from localhost ([::1]:52038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHiWk-0008Qr-WF for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 03:40:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHi7h-0001Hp-6y for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 03:14:46 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHi7d-0006Hi-S6 for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 03:14:44 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 345205C00DA for ; Wed, 9 Feb 2022 03:14:41 -0500 (EST) Original-Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Wed, 09 Feb 2022 03:14:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=pmVea5VbQUFaYCEroEqOHVLw4r0Ijsf2/iHDvN WT2PI=; b=Mx2jWtPSoINP2zb3UmP2xNWjqwBAEWX18o4wfk7MyznmnzCd1500R9 TU4SlzZOl2gNuLr7I2g3TmOUW+ybUX4Mhz55LtuxCMfo76CFmWzHFwP89WKEG/Jp nTAOeEH9zkRYdG5MOkUYNnBa5GmbblWMs1jU9IHlfFnYJ21IpNZQBP+Es8Ud/qaS yQrGKz2pxVYuc6rcdRyOzLFI2C/E0rNRIRIQo8YiZsd3hG+tJ00KQ/0/tI95TNS+ Vkyywp0FOzWsAZBV9JQtFygrg+H2tuIp/X03BNl+tPWekA0gPR2FDxqc4OBt0fVA EFVnA8i6v28QD0bVad9Ap5voMHdt75Jw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=pmVea5VbQUFaYCEro EqOHVLw4r0Ijsf2/iHDvNWT2PI=; b=n3GtLmky1dWY3DrnJe5Wt+MjWDP+Kgv0F Axt7cLZTHfK+ZMJ3E0gQBf6Ot0Vuq9ylVPIJuS8dE6OuAkKN1XbLEMSRq8rQxBda zB+cJN369h6X1CI47qq8UcF2XTudQWfXH9X207NrZIeeq4aHTyvDFbixFDUnHV1P 2upNNQ0hpMfmnHoo2Zv/w7h8WmQQakb0AA5KrJswhixA69KqMXHpEAULoXPoQ062 RTdaxdHywQDrYQAbfB+o7LKq9X0aBO/qsurSMY291zZuxJCOVpJ9a6hf3du0PVQX d8dHZi17+0zyWHCv+IsG2XG0NCshfM8yeREQMkogyHXoqp5sG7pFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheekgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpeflohhoshhtuceojhhoohhsthhkrhgvmhgvrhhssehfrghs thhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeetudeuhfeutdffhfefkedukefgke ekgffhfeelveejledvjeduvedvjeeviefhieenucffohhmrghinhepghhithhfohhrfihi nhguohifshdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id E49B724A0077; Wed, 9 Feb 2022 03:14:40 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <838rulw5rg.fsf@gnu.org> 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:135855 Archived-At: Hi Eli, Thanks for your answer, it certainly cleared up some questions I had. Still, I'm not sure what to do about git. On Tue, 8 Feb 2022, at 19:52, Eli Zaretskii wrote: > . The above policy will not work with Git, because it _must_ be able > to call the MSYS2 Bash and other MSYS2 programs. If you want to > invoke Git from Emacs, have a git.cmd batch file on your Path > which will use SETLOCAL to add Git's bin directory to Path > temporarily, for the duration of the Git command, and invoke > git.exe. This will work for most simple Git commands; for more > complex Git commands that don't work from Emacs, use Git Bash > window to invoke them, and set up emacsclient to be the EDITOR for > Git commands instead. I use magit on Linux, and have so far continued to do so on Windows, even though it's extremely slow (apparently a known problem.) Git itself is installed from , which adds to my confusion, because it is apparently a separate (and minimal) MSYS2 installation, which one is advised to keep separate from a "normal" MSYS2 installation. In order to use it inside Emacs, I add "C:/Program Files/Git/usr/bin" to `exec-path` (it's not in my system path). Does that make sense? -- Joost Kremers Life has its moments