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: How to *properly* set up Emacs on Windows? Date: Tue, 08 Feb 2022 18:06:36 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3823"; 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 Tue Feb 08 19:03:25 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 1nHUpm-0000iN-Pa for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 19:03:24 +0100 Original-Received: from localhost ([::1]:60212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHUpl-00010u-Ga for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 13:03:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHTxb-0000Ij-Rj for help-gnu-emacs@gnu.org; Tue, 08 Feb 2022 12:07:32 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHTxF-0000qN-4e for help-gnu-emacs@gnu.org; Tue, 08 Feb 2022 12:07:05 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B50AC5C0056 for ; Tue, 8 Feb 2022 12:06:57 -0500 (EST) Original-Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Tue, 08 Feb 2022 12:06:57 -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:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; bh=6 dCWzD17JR3xR8eMw8ogIl0PHJekRXgPPSJ3jpD/EiQ=; b=IXXmTN+WOANt7d7zz a8e+wd7c3UFvDdKQts44mcUK9Jugqo7WXcO4h/ktQ6uB6q/hQct30YmxVpaAajUS /PKBT3R1h8gyF/GoMNyLUwxIpiFA5VA+3dJLy6hVjCkT94O/NGikUGA2wUpNOzWA qniRd5GUjTB1sXsK8wFmcVXTk/hfUKi/yqz4KFtyoiFUlmI46VLe+4nhA2W9m+XN SCt0JzD1PjOQeCGwOWF0ian4Em9yt41VislyYb5izawrvhayolIhkzUNotJ94u9P cjLOCnf4F/I8nhKEEtzUsvDBVQRByolpXnKYIrzyVzla9F6MmXWInhNb3yfQPGtA 0+N3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version: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=6dCWzD17JR3xR8eMw8ogIl0PHJekRXgPPSJ3jpD/E iQ=; b=ZSg2vVKX4Gh59ONFK5Ln9mlwbU2JZ4wiohqoWv6WB9/y0Jk6/qieG2eyp iV+R8CcFCdWgCzEhQyaDDye8iKfndiWp6wgzzQTOoPxAXPLjqJlUUe3zMhoQd/C4 LmWi8DXLqwehQfrH1CBcbiWbnkkxiDNG2bCJeyRHiQMUnciVuY1eMOe1g0ZQR5En vu8LhtCle7xfwsGx85t61VSrEmD/3+22alA0nqikAlXN1eJ56VjflrmFJvG3QrF6 Ln9nOQ3MWv0w8SYjHYctmUw9GTGiBEYZWvNQjhSysblh+N6GDzMAxiHJBqlh/pav WsmQQq6S97s6JIva5r5aWXz67Fz2Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheejgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesthdtredtre ertdenucfhrhhomheplfhoohhsthcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgr ihhlrdhfmheqnecuggftrfgrthhtvghrnhepieegfedtudehvdetfeehhfevteekudetue euudfffffgteelieeiieehveetteefnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrh gvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6827B24A0074; Tue, 8 Feb 2022 12:06:57 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface 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:135841 Archived-At: Hi list, I've recently had to set up Emacs on Windows, having used it for over two decades on Linux exclusively. Unfortunately, I'm constantly running into small issues that give me the impression there's something wrong with my setup, but unfortunately I haven't been able to figure out what exactly. So, the tl;dr of it is this: What would I need to do to get Emacs running on Windows in such a way that easily access utilities such as git, diff and hopefully a few more (ag or rg would be nice, gcc and libgccjit for when I decide to move to Emacs 28) from within Emacs, and also have a graphical Emacs? The thing that prompted me to post this message is that I ran into the issue described here: https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-05/msg01296.html In short, the variable `package-gnupghome-dir` is set to "c:/Users/joost.kremers/.emacs.d/elpa/gnupg", but when I try to install / update packages, I get an error saying: keyblock resource '/c/Users/joost.kremers/.emacs.d/elpa/c:/Users/joost.kremers/.emacs.d/elpa/gnupg/pubring.kbx': No such file or directory Note the path. I can set `package-gnupghome-dir` to "/c/Users/joost.kremers/.emacs.d/elpa/gnupg" and that will fix this issue, but it doesn't feel like it's the right solution. Eli Zaretski's comment in the message I linked to most likely applies to my case: "Looks like you are mixing MSYS2 executables and native Windows (a.k.a. "MinGW") executables [...]". To be honest, though, I'm not entirely sure how I got myself into that situation. I don't even have a good understanding of MSYS2 and MinGW and the differences between them. I *think* it happened when I tried to use some external utilities from within Emacs, mainly git and diff, for which I modified my PATH variable. So, does anyone have any advice on how to get out of this situation and get a better Emacs setup on Windows? Any and all hints very much appreciated! TIA Joost -- Joost Kremers Life has its moments