From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: How to *properly* set up Emacs on Windows? Date: Wed, 09 Feb 2022 14:19:48 +0100 Message-ID: <87sfssqirv.fsf@telefonica.net> References: <871r0drus2.fsf@telefonica.net> <329e100c-bdc0-4dd3-9f8b-64af1b4cc90e@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14313"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:TsRy+RbCjM2Drn2kwIW47nLWLag= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 09 14:35:27 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 1nHn82-0003S2-Ce for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 14:35:26 +0100 Original-Received: from localhost ([::1]:45832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHn80-0001Mi-Ui for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 08:35:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHmtO-0001RP-1B for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 08:20:18 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:58192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHmtD-0003H0-Jb for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 08:20:12 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nHmt1-0003Sz-N6 for help-gnu-emacs@gnu.org; Wed, 09 Feb 2022 14:19:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:135866 Archived-At: Joost 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.