# Tag Info

28

@StuartHickinbottom explained what I was doing wrong: using libgnutls-28.dll when Emacs 25.1 requires the newer and incompatible libgnutls-30.dll. Then it was a matter of finding binaries of libgnutls-30.dll and other required libraries. Thankfully Phillip Lord has compiled Windows versions of all the GnuTLS libraries and dependencies and many other ...

21

Courtesy of @Drew, here is a 64-bit Emacs for Windows: http://emacsbinw64.sourceforge.net/ If you want a stable version, make sure download the Release, not latest version. From my experience, the latest version is Emacs 25.x, and there's no runemacs.exe in it. (Please note this is not the official GNU version.) As of November 2016, the author has also ...

20

Automatically starting a server if one is not already started This should be the same for any Emacs build. Add this snippet to your .emacs or .emacs.d/init.el. (require 'server) (unless (server-running-p) (server-start)) And then just start emacs by running the runemacs.exe executable that comes with the build. How to call emacs so that it utilizes ...

14

On every Windows install on which I use Emacs, I have the following code in a .emacs file at the listed location: ;; Place this file in C:\Users\Username\AppData\Roaming and point to the appropriate files (setq user-init-file "C:/path/to/.emacs") (setq user-emacs-directory "C:/path/to/.emacs.d/") (setq default-directory "C:/whatever/you/want/to/start/in") (...

12

Instead of opening emacs.exe directly, open runemacs.exe. This will open Emacs without the extra window in the background.

11

With your keyboard setup, the key ^ is most probably a "dead key". It is a key meant to be used in conjunction with another one, in order to produce another character. In this case, it is meant to produce accented characters : ^e will produce ê, ^a will produce â and so on. It should not be specific to emacs though : I guess all your applications require ...

10

Beginning with Emacs 25, the Emacs Windows download directory now includes a deps package that includes all the dependencies for a particular architecture. For example, for x86_64, use emacs-25-x86_64-deps.zip. I use the following script to automatically install Emacs. It should work for WSL or Cygwin. It must be run under elevation and already have run Set-...

10

Emacs will load the user-init-file at startup by default, unless you explicitly tell it not to (e.g. with the -Q argument on the command line). I suspect your .emacs file is in the wrong place. Start Emacs and try C-h v user-init-file to see where Emacs is looking. See also: https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-init-...

10

I have actually done rather a lot of research on this and fundamentally the problem is that git for windows sucks This is the upstream bug: https://github.com/git-for-windows/git/issues/596 and it requires somebody to rewrite shell scripts in C so that there is no more command forking. For me, its the interactive rebase that is the real killer (I can kick ...

10

The ^[] noise is coming from various terminal control characters in your shell prompt. Try echo $PS1 to see the full sequence, and try e.g. export PS1='$ ' to see that a simpler prompt string removes that particular problem. For the encoding, you might try making utf-8 your preferred encoding: (prefer-coding-system 'utf-8) Setting up the prompt Emacs ...

9

As of December 2016, there is now a 64-bit version of GNU Emacs for Windows on the official GNU downloads sites. From the FAQ: GNU Emacs FAQ for MS Windows At time of writing, the latest version of GNU Emacs is version 25.1. For example, in one of the download sites, I notice the following file: /gnu/emacs/windows/emacs-25.1-2-x86_64-w64-mingw32....

9

It is recommended that users read the entire ../emacs/nt/INSTALL contained within the Emacs source code. Quick Start -- 5 Easy Steps: This answer was tested on WindowsXP--SP3. The installation paths will need to be adjusted based on the individual preferences of the user. In this example: The desktop is: C:\Documents and Settings\lawlist\Desktop The ...

8

Run: M-x eval-expression (executable-find "git") if it is not found then you need to add git to the exec-path list. (add-to-list 'exec-path "/path/to/folder/containing/git/executable") Look at the definition for magit-git-executable and you'll see how, if emacs cannot find git using executable-find, it won't be set correctly.

8

As @Drew noted, Emacs doesn't include this library so on Windows you need to install it separately. See the Emacs README.w32 section "Optional dependency libraries" for more information. As of Emacs 25 it looks like you can download the dependencies from the GNU FTP server (or a mirror). E.g. http://ftp.gnu.org/gnu/emacs/windows/emacs-25-x86_64-deps.zip ...

7

Since you're not using a package manager, you need to also manually install each package's dependencies. The error message tells you exactly which dependency you're missing. You can see at the top of projectile.el: (require 'thingatpt) (require 'dash) (require 'grep) ; For `rgrep' (require 'ibuffer) (require 'ibuf-ext) Some are included with ...

7

As @nanny said in comments, solution is having installed Cygwin with diffutils. Here is how to do it: Download Cygwin from its homepage. Install Cygwin with diffutils: A GNU collection of diff utilities package. This package can be found in Utils section in one of few steps of Cygwin installation. Add Cygwin directories to the PATH windows system variable. ...

7

I don't use Emacs on Windows, nor do I use xwidgets, but I do know that Emacs has to be compiled with xwidgets (since some of its stuff is written in C) for it to work. Taking a cursory look at the configure options for Emacs, I see a particular option for compiling Emacs with xwidgets: --with-xwidgets enable use of some gtk widgets in Emacs buffers ...

7

Quote from Emacs manual: 16.4 Checking and Correcting Spelling This section describes the commands to check the spelling of a single word or of a portion of a buffer. These commands only work if the spelling checker program Aspell, Ispell or Hunspell is installed. These programs are not part of Emacs, but one of them is usually installed in ...

7

Reading the GitHub discussion thread linked in @wvxvw’s comment, I discovered the variable inhibit-compacting-font-caches. Setting it to non-nil solves the issue: (setq inhibit-compacting-font-caches t) Now navigating point is fast. According to the variable’s documentation, inhibiting compacting font caches comes at the expense of more memory usage, which ...

7

Yes, hunspell is THE spell-checker to use with emacs 26.1, as there's no windows binary of aspell 0.6 for the time being, and no one can foretell when there will be one. I tried hunspell this morning with emacs 26.1 on Windows 10 and it ran perfectly well. You will find some very useful tips on how to configure your .emacs file for hunspell here. Have a ...

6

I stumbled on another answer to the problem on SuperUser today. It seems more hackish, but the result is more consistent with other programs on Windows. Run runemacs.exe with no pre-existing icon in the taskbar. Right click on the running Emacs icon in the taskbar, and click on "pin this program to taskbar." Close Emacs Shift right-click on the ...

6

Magit's wiki now features a page about the various ways one can push from Magit when using MS Windows. Also checkout the new ssh-agency package. Both the wiki page and the package were written by @npostavs. Also note that it is virtually never Magit's fault if you cannot push. It's usually a configuration issue (even if you can push from the shell but not ...

6

Usually, the problem is that Emacs can't access the password prompt of git on Windows. Thus, it seems to "hang" on push, where it really is waiting for your password. You can circumvent this by using an ssh key instead of a username/password in your git repo, and doing the first push manually in the shell (git will remember your ssh password after the first ...

6

There is a new feature in Emacs from version 24.4 for using Unicode strings to access filenames in Windows. This allows using filenames containing characters that are not in the locale's 8-bit character set, which was previously impossible. http://masteringemacs.org/article/whats-new-in-emacs-24-4 Emacs on Windows 2000 and later can now access files and ...

6

Start Emacs by running runemacs.exe as describe in the link in the question above. Right-click on the Emacs icon and pin it to the taskbar. Right-click on the Emacs icon again, then right-click on the Emacs icon in the popup and select Properties. In the Properties dialog, alter the Target to point to the runemacs.exe you want to use to start a new Emacs ...

5

This isn't a fully-automated solution, but it's part of the way there. As far as I can tell, the current set of support libraries and their prerequisites is: libpng-1.6.12 cairo-1.12.16 gdk-pixbuf-2.30.2 giflib-5.1.0 glib-2.38.2 gnutls-3.0.9 jpeg-v9a libcroco-0.6.8 libffi-3.0.13 librsvg-2.40.1-2 libxml2-2.7.8 lzo-2.06 pango-1.36.1-2 pixman-0.32.4 tiff-4.0.3 ...

5

Others have answered the server part. Here is what I do, to get UNIX / GNU/Linux-like utilities such as grep and diff: Install Cygwin (one-time operation). Load cygwin-mount.el. Load setup-cygwin.el. However, be aware that there are different versions of Cygwin. I use an older version (dunno which one - hard to tell, AFAICT). Dunno whether you will have ...

5

Automatically starting a server if one is not already started I highly recommend setting an environment variable for ALTERNATE_EDITOR to runemacs.exe. This way you can always call emacsclient even if there is no server. Just add (server-start) to your init file. When a server does not exist emacsclient calls the ALTERNATE_EDITOR which is emacs in our case. ...

5

Add this to your init file to make sure that an edit server is created when emacs starts (require 'server) (unless (server-running-p) (server-start)) Now make your windows shortcut point to emacsclientw.exe as follows: C:\path\to\emacsclientw.exe -n -e "(raise-frame)" -a "C:\path\to\runemacs.exe" This should focus an existing Emacs frame (if any), or ...

5

Well, based on the manual and my memory of how I set up my emacs configuration, you're correct, you'll need to set up the HOME environment variable. You can set up the HOME variable on Windows 7 by going to the Control Panel > System > Advanced System Settings > Advanced > Environment Variables… and checking the User Variables for < User Name > list. If ...

Only top voted, non community-wiki answers of a minimum length are eligible