all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost <joostkremers@fastmail.fm>
To: help-gnu-emacs@gnu.org
Subject: How to *properly* set up Emacs on Windows?
Date: Tue, 08 Feb 2022 18:06:36 +0100	[thread overview]
Message-ID: <be278914-901b-4d46-8b13-4f263a583a85@www.fastmail.com> (raw)

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



             reply	other threads:[~2022-02-08 17:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 17:06 Joost [this message]
2022-02-08 18:52 ` How to *properly* set up Emacs on Windows? Eli Zaretskii
2022-02-09  8:14   ` Joost
2022-02-09 14:04     ` Eli Zaretskii
2022-02-10 21:05       ` Joost Kremers
2022-02-08 20:02 ` Óscar Fuentes
2022-02-09  8:48   ` Joost
2022-02-09 11:22     ` H. Dieter Wilhelm
2022-02-09 13:19     ` Óscar Fuentes
2022-02-10 21:58       ` Joost Kremers
2022-02-10 22:37         ` Óscar Fuentes
2022-02-11  9:30           ` Joost
2022-02-11  7:00         ` Eli Zaretskii
2022-02-09 12:28 ` Arash Esbati

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=be278914-901b-4d46-8b13-4f263a583a85@www.fastmail.com \
    --to=joostkremers@fastmail.fm \
    --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.