Both sides previous revisionPrevious revisionNext revision | Previous revision |
other:emacs_doc [2024/07/30 16:51] – [Windows installation] Mention Emacs installation directory jypeter | other:emacs_doc [2025/03/17 10:32] (current) – [Windows] Added note about upgrade possibly working with emacs>=30.1 jypeter |
---|
* IF the automated installation with ''winget'' does not work, download the most recent Windows installer from a gnu //ftp// mirror | * IF the automated installation with ''winget'' does not work, download the most recent Windows installer from a gnu //ftp// mirror |
* Go to a [[https://ftpmirror.gnu.org/emacs/windows/|gnu emacs for windows ftp mirror]] | * Go to a [[https://ftpmirror.gnu.org/emacs/windows/|gnu emacs for windows ftp mirror]] |
* Go to the most recent ''emacs-XX/'' folder (e.g. ''emacs-29/'' as of February 2024) | * Go to the most recent ''emacs-XX/'' folder (e.g. ''emacs-29/'' as of August 2024) |
* Download the most recent ''emacs-XX.YY-installer.exe'' file (e.g. ''emacs-29.4-installer.exe'' as of July 2024) and execute it | * Download the most recent ''emacs-XX.YY-installer.exe'' file (e.g. ''emacs-29.4-installer.exe'' as of August 2024) and execute it |
| |
* If everything went well, you should have a new ''Start''=>''Emacs-XX'' menu that you can use to start ''emacs'' | * If everything went well, you should have a new ''Start''=>''Emacs-XX'' menu that you can use to start ''emacs'' |
* **If** you need to use the **emacs //ediff// mode to compare text files**\\ <wrap hi>Very useful</wrap> | * **If** you need to use the **emacs //ediff// mode to compare text files**\\ <wrap hi>Very useful</wrap> |
* Install the Windows version of [[https://www.gnu.org/software/diffutils/diffutils.html|Gnu diffutils]] | * Install the Windows version of [[https://www.gnu.org/software/diffutils/diffutils.html|Gnu diffutils]] |
* Download the //Complete package, except sources// ''Setup'' installer (''diffutils-2.8.7-1.exe'' as of May 2024) from [[https://gnuwin32.sourceforge.net/packages/diffutils.htm|]] and execute the installer | * Download the //Complete package, except sources// ''Setup'' installer (''diffutils-2.8.7-1.exe'' as of August 2024) from [[https://gnuwin32.sourceforge.net/packages/diffutils.htm|]] and execute the installer |
* This will install the required binaries and reources in ''C:\Program Files (x86)\GnuWin32\'' | * This will install the required binaries and reources in ''C:\Program Files (x86)\GnuWin32\'' |
* If you use the recommended ''.emacs'' configuration file, it should already include the following section telling ''emacs'' where to find the ''diffutils'' binaries it needs for comparing text files | * If you use the recommended ''.emacs'' configuration file, it should already include the following section telling ''emacs'' where to find the ''diffutils'' binaries it needs for comparing text files |
(setq exec-path (append exec-path '("C:\\Program Files (x86)\\GnuWin32\\bin"))) | (setq exec-path (append exec-path '("C:\\Program Files (x86)\\GnuWin32\\bin"))) |
)</code> | )</code> |
* FIXME Check if there is a recent //compiled for Windows// version of ''diffutils''\\ As of February 2024... | * FIXME Check if there is a recent //compiled for Windows// version of ''diffutils''\\ As of August 2024... |
* [[https://savannah.gnu.org/news/?id=10368|diffutils-3.10]] is available (released in May 2023) | * [[https://savannah.gnu.org/news/?id=10368|diffutils-3.10]] is available (released in May 2023) |
* The ''2.8.7-1'' Win32 binaries are dated //May 2004//, but **work perfectly fine**! | * The ''2.8.7-1'' Win32 binaries are dated //May 2004//, but **work perfectly fine**! |
| |
==== Windows ==== | ==== Windows ==== |
| |
| <note tip>''winget list'' returns a result, **after installing ''Emacs 30.1''**, so it is possible that ''winget upgrade'' will work, at last! :-) |
| |
| <code>> winget list --id GNU.Emacs |
| Nom ID Version Disponible Source |
| -------------------------------------------------- |
| GNU Emacs 30.1 GNU.Emacs Unknown 30.1 winget</code></note> |
| |
Using ''winget upgrade'' for updating emacs on Windows unfortunately [[https://github.com/microsoft/winget-pkgs/issues/88443#issuecomment-1688257680|does not work yet (August 2024)]]. The easiest way to update Emacs is: | Using ''winget upgrade'' for updating emacs on Windows unfortunately [[https://github.com/microsoft/winget-pkgs/issues/88443#issuecomment-1688257680|does not work yet (August 2024)]]. The easiest way to update Emacs is: |
* In the ''Start'' menu: ''Start'' => ''E'' => ''Emacs-**version**'' (e.g. ''Emacs 29.3'') | * In the ''Start'' menu: ''Start'' => ''E'' => ''Emacs-**version**'' (e.g. ''Emacs 29.3'') |
* In a running Emacs: ''Help'' menu => ''About Emacs'' | * In a running Emacs: ''Help'' menu => ''About Emacs'' |
| * or ''M-x version'' |
* Use ''winget show'' in a PowerShell to determine (all) the available versions | * Use ''winget show'' in a PowerShell to determine (all) the available versions |
* <code>PS C:> winget show --id GNU.Emacs --versions | * <code>PS C:> winget show --id GNU.Emacs --versions |