From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: How to *properly* set up Emacs on Windows?
Date: Wed, 09 Feb 2022 14:19:48 +0100 [thread overview]
Message-ID: <87sfssqirv.fsf@telefonica.net> (raw)
In-Reply-To: 329e100c-bdc0-4dd3-9f8b-64af1b4cc90e@www.fastmail.com
Joost <joostkremers@fastmail.fm> writes:
>> MSYS2 provides many utilities as MinGW packages.
>>
>> For instance, if you installed emacs with:
>>
>> $ pacman -S mingw-w64-x86_64-emacs
>
> I didn't, I installed Emacs from gnu.org (installed to C:/Program\
> Files/emacs-27.2-x86_64/). Would there be an advantage in installing Emacs with
> pacman instead?
Convenience and reliability.
> Will that give me a graphical Emacs or just a console one?
A graphical one, of course.
>> you should install those utilities as:
>>
>> $ pacman -S mingw-w64-x86_64-grep
>> $ pacman -S mingw-w64-x86_64-diffutils
>> $ pacman -S mingw-w64-x86_64-ag
>
> Any point in installing those given that I didn't install Emacs with
> pacman?
Well, AFAIK grep et al. are not included on GNU's package, so if you
want to use those utilities, you must install them from somewhere.
>Can they be used with Emacs from gnu.org?
The standalone tools (grep, diff, ag, etc) yes. The shared libraries
(libgccjit) may be problematic, if the MinGW packages distributed by
MSYS2 drift from what was used to build the GNU Emacs binary package.
>> For communicating with ELPA:
>>
>> $ pacman -S mingw-w64-x86_64-gnupg
>
> Currently, after modifying the system PATH as described above, I can
> install packages from GNU Elpa again (Melpa was never a problem).
Then I reckon that you have gnupg somewhere on your PATH.
>> For nativecomp support:
>>
>> $ pacman -S mingw-w64-x86_64-libgccjit
>
> Is there an Emacs 28 pretest available that will work with this?
No, MSYS2/MinGW tries to distribute released versions. Once Emacs 28 is
released, binary packages will be available from MSYS2 repos after a few
days.
> (The
> Windows binaries that were anounced on emacs-devel the other day
> appear to be MSYS2 binaries?
I don't think so.
> And `pacman -Ss emacs` doesn't return any Emacs 28 packages.)
Only one version of a given package is available on pacman at any give
time, except for cases that don't concern us.
>> MSYS2 does not provide git as a MinGW package, so you have two options:
>> either install the MSYS2 package (pacman -S git) or install "Git for
>> Windows", which provide an almost native port.
>
> I'm using the latter and added "C:/Program Files/Git/usr/bin" to
> `exec-path`, as mentioned above. Wrong decision?
I'll prefer to set vc-git-program. There are lots of files on that
directory. Now that I think of it, probably you are unknowingly using
gnupg from there. If you remove "C:/Program Files/Git/usr/bin" and GNU
Elpa stops working, install mingw-w64-x86_64-gnupg with pacman.
>> You shouldn't need further modifications to your .emacs or to the
>> environment (*), so ask here before adding something else.
>
> I've been using Git Bash (alongside eshell) as my shell of choice.
> Would the MinGW-x64 shell provided by MSYS2 be a better choice? Or
> doesn't it really matter?
The shell provided by MSYS2 works on top of the POSIX emulation layer.
If you know the implications and is what suits you, fine. If not, I'll
use Eshell alone, as it makes a decent cross-platform experience.
next prev parent reply other threads:[~2022-02-09 13:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-08 17:06 How to *properly* set up Emacs on Windows? Joost
2022-02-08 18:52 ` 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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sfssqirv.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).