35 votes

How to start Emacs without the cmd.exe window (on MS Windows)?

Instead of opening emacs.exe directly, open runemacs.exe. This will open Emacs without the extra window in the background.
user avatar
  • 3,799
31 votes
Accepted

How do I install GnuTLS for Emacs 25.1 on Windows?

@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-...
user avatar
  • 4,612
28 votes

How do I set a different location for the dot emacs .emacs file on Windows 7?

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 ...
user avatar
  • 3,799
22 votes
Accepted

Set up Emacs on Windows to start a single instance and open files in the existing instance

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-...
user avatar
  • 22.4k
22 votes

Where is official 64-bit Emacs for Windows? (The manual said there is!)

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 ...
user avatar
  • 4,233
15 votes
Accepted

unicode.txt slowness

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 ...
user avatar
  • 989
14 votes
Accepted

Git Bash in emacs on Windows

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 ...
user avatar
  • 19.2k
14 votes

aspell with emacs 26.1 on ms windows

You can install aspell or hunspell with https://www.msys2.org/. MSYS2 has native binaries for aspell available which are compatible with Emacs 26.1. Note you can also install emacs using MSYS2 as well....
user avatar
  • 186
12 votes

Running Emacs from Windows taskbar

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 ...
user avatar
  • 391
12 votes
Accepted

How to avoid typing "space" after "^" for moving up in directory in dired?

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 ...
user avatar
  • 3,351
12 votes
Accepted

Magit extremely slow in Windows. How do I optimize?

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 ...
user avatar
  • 1,700
12 votes
Accepted

aspell with emacs 26.1 on ms windows

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 ...
user avatar
11 votes
Accepted

Easiest way to install Emacs Windows support libraries

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-...
user avatar
11 votes
Accepted

Avoid cmd window for pinned emacs on Windows 10

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 ...
user avatar
10 votes

How would one make sure that the .emacs (init file) automatically initializes when you open Emacs?

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 ...
user avatar
  • 19.2k
10 votes
Accepted

Comparing two text files on a Windows system

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 ...
user avatar
  • 1,321
10 votes

Where is official 64-bit Emacs for Windows? (The manual said there is!)

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 ...
user avatar
10 votes
Accepted

How to build Emacs master branch (aka trunk) on MS-Windows

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 ...
user avatar
  • 17.7k
10 votes
Accepted

GUI Emacs sets the exec-path only from Windows environment variable but not from .emacs file

PATH vs exec-path The PATH environment variable lists directories for programs to find executable files (when executing a non-absolute filename). The exec-path Emacs variable lists directories for ...
user avatar
  • 8,793
10 votes

eww ---> libxml2 library not found

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 ...
user avatar
  • 19.2k
10 votes
Accepted

How to remap backward-delete and help command while using Emacs from a terminal emulator?

From the Emacs manual, node DEL Does Not Delete: On a text terminal, if you find that <BACKSPACE> prompts for a Help command, like Control-h, instead of deleting a character, it means ...
user avatar
  • 69.7k
10 votes

Setting up emacsclient on MS windows

I am not so sure about the advice in the emacswiki page. What you want to do is to the following: Launch an emacs client connected to the running emacs server. If the emacs server is not running, ...
user avatar
  • 251
9 votes
Accepted

Magit on Windows: "searching for program: permission denied, git"

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 ...
user avatar
9 votes
Accepted

How to install a package manually

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 ...
user avatar
  • 5,464
9 votes
Accepted

your emacs does not come with xwidget support... (Windows 10)

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 ...
user avatar
  • 1,280
9 votes
Accepted

How to install GNU Emacs on Windows 10 Pro?

Some third-party Windows package managers offer a straightforward installation of GNU Emacs on Windows 7+. Notes: Chocolatey requires an administrative shell access, whereas Scoop does not and makes ...
user avatar
  • 208
8 votes

How do I set up my .emacs.d folder on Windows?

I really like the answer posted by @Ryan here. ;; 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-...
user avatar
  • 131
8 votes
Accepted

Org-babel invoking cmd.exe

In spite of what I wrote in the comments one can set cmd as shell in ob-sh! The only thing to be aware of is that one needs to use cmdproxy.exe instead of cmd.exe to get the output to stdout right. ...
user avatar
  • 30.3k
7 votes
Accepted

Running Emacs from Windows taskbar

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 ...
user avatar
  • 7,813
7 votes
Accepted

How do I set up my .emacs.d folder on Windows?

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 ...
user avatar

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