Questions tagged [microsoft-windows]

Questions relating to the use and configuration of Emacs on the proprietary Microsoft Windows Operating System.

138 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
2k views

Tramp freezes Emacs with OpenSSH on Windows

I just installed Emacs on my Windows machine for remote file editing using Tramp. However, I noticed than whenever I try to connect to a remote server (C-x C-f /ssh:home:), Tramp just displays Opening ...
Nick Clifford's user avatar
6 votes
0 answers
794 views

Org-indent with variable-pitch-mode and visual-line-mode indenting lines after the first too far on windows

On my windows machine, org-indent or visual-line-mode seems to be indenting wrapped lines further than it should. It almost seems like it is double-indenting them, as the extra indentation seems to ...
Nathan McCarty's user avatar
6 votes
1 answer
932 views

Under Windows, Emacs cannot handle encodings correctly for subprocesses, can it?

I have two simple text files on my D: drive, as shown below. D:\我.txt I D:\你.txt You After I execute M-x diff and type the correct filenames (Yes, I can input Chinese and filename ...
Lei Zhao's user avatar
  • 421
5 votes
0 answers
248 views

run “term” on MS-Windows

I typed M-x term; then Emacs prompted a query string followed by a default pathname: Run program: D:/Progs/emacs-29.1/libexec/emacs/29.1/x86_64-w64-mingw32/cmdproxy.exe Directly typed <return>. ...
shynur's user avatar
  • 5,164
5 votes
0 answers
1k views

Can't run Windows 10 Bash with ansi-term

I've got this error, when running M-x ansi-term C:/Windows/System32/bash.exe RET Spawning child process: invalid argument after running M-x debug-on-entry RET start-process RET when running M-x ansi-...
jcubic's user avatar
  • 731
5 votes
1 answer
186 views

Get Administrator privileges on Windows via TRAMP?

I constantly use /sudo::/ URI schema on Linux to edit protected files. Is there something similar on Windows? Currently I start Emacs with Administrator privileges but that can lead to write ...
gavenkoa's user avatar
  • 3,412
5 votes
0 answers
771 views

In Emacs, how do you force using a fallback font?

Font and encoding (in a broad sense, internationalization) are causing problems in many software scenarios, like web browser and editor. The Unicode U+201C and U+201D are double quotation marks. ...
Lei Zhao's user avatar
  • 421
4 votes
0 answers
1k views

byte-compile much slower in X (vs. -nw)

Setup Windows 10 host with X server (VcXsrv) Linux guest (Arch) in virtual machine (VMware) Benchmark (defmacro measure-time (&rest body) "Measure the time it takes to evaluate BODY." `(let ...
feklee's user avatar
  • 1,079
4 votes
0 answers
3k views

Extremely slow startup on Windows - How to debug?

I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s). (The server works, but this is so slow I cannot debug some other problems that I am trying to fix) My ...
guest's user avatar
  • 41
4 votes
0 answers
2k views

Emacs sometimes fails to save files

I'm experiencing a weird problem with Emacs on Windows where sometimes, after a while, the current buffer I'm in throws an error when attempting to save the file. I can't seem to reliably reproduce ...
sonictk's user avatar
  • 41
3 votes
0 answers
289 views

Frequent Emacs Hangs on WSL2 with Windows 11: Issue with `x-get-selection-internal` and kill and yank

I'm currently running Emacs 28.2 on WSL2 on Windows 11, utilizing the WSLg to directly open the Emacs GUI from Windows. I'm frequently encountering an issue where the evil-yank and evil-paste-after ...
Tokubara's user avatar
  • 209
3 votes
1 answer
543 views

mingw shell in emacs

i'd like to use bash shell from msys2 in emacs and i made the following changes in emacs init file: (setq explicit-shell-file-name "C:/tools/msys64/usr/bin/bash.exe") (setq shell-file-name &...
Quasar999's user avatar
3 votes
0 answers
241 views

How to run process in administrative mode from Emacs?

I've been using powershell.el in MS Windows Emacs, but I sometimes want to be administrative mode so that I can do software installation via chocolatey, etc. Is there any way to call shell command, ...
dualism's user avatar
  • 304
3 votes
0 answers
298 views

Why don't I get a source window using realgud:gdb?

using GNU Emacs 25.2.1 (x86_64-w64-mingw32) and realgud 20171006.1840 (from marmalade), I can't use realgud for debugging with gdb: I start it as described in the docu: M-x load-library RET realgud ...
Markus's user avatar
  • 481
3 votes
2 answers
445 views

Fresh install 24.5 on Windows 10 bash shell Linux 16.04 crashing on package manager

Fairly new to emacs, seemed super awesome for writing a lot of different styles. Got it working just fine on my desktop using the new bash terminal - 14.04 - on my desktop. Did the exact same setup ...
Fiend394's user avatar
3 votes
0 answers
281 views

Emacs keeps guessing wrong coding system on a file I edit both in Linux and Windows

I use Emacs on both Linux and Windows to edit the same files (that I keep in Dropbox, which I hope is irrelevant, but who knows). The files are encoded in utf-8 with Unix line endings. Occasionally, I ...
Omar's user avatar
  • 4,792
3 votes
0 answers
191 views

Basic process management under Windows

I've got the following elisp: (setq proc (start-process "powershell" "*powershell*" "powershell.exe")) Unfortunately, I can't seem to get proc to do anything. For instance, in an normal shell, I ...
Sean Allred's user avatar
  • 6,901
3 votes
0 answers
705 views

Emacs on Windows: `shell-command` hangs when process wants input

I am using Emacs on Windows 8. Some processes when run through shell-command will request interactive input, notably commands like git push (which will ask for user name and password). Sometimes I ...
kdb's user avatar
  • 1,561
2 votes
1 answer
53 views

Changes of ispell.el from GNU emacs v27.2 from v26.3?

Recently, I updated my GNU emacs from v26.3 to v27.2. Now, ispell does not work anymore under Windows 10 (on my Macs, it still works). On my Windows machine, I use hunspell, which has been the same v1....
BVP's user avatar
  • 121
2 votes
0 answers
126 views

IPython interpreter for conda environments on Windows 10

I am using Anaconda3 for managing my environments and the IPython interpreter in Emacs. When activating an environment with pyvenv-activate the completion in the IPython interpreter is not working and ...
moserandi's user avatar
2 votes
0 answers
45 views

Does `sql-mysql` work on MS Windows?

I remember that a few years ago when I tried there was an issue with the mysql client not supporting pipes on Windows or something like that, so it didn't work. I tried sql-mysql with Emacs 27 and it ...
Tom's user avatar
  • 1,230
2 votes
0 answers
255 views

How to scale toolbar on HiDPI (4K) display on Microsoft Windows?

My laptop display is 3840x2160 and has about a 15" diagonal. My setting to "Change the size of text and apps" is set to Windows's recommendation of 250%. The title bar, text in the ...
P.Hays's user avatar
  • 61
2 votes
0 answers
75 views

How can I get Emacs to release a locking folder handle?

After using Emacs to open a file in a folder on MS Windows using emacsclientw -n, killing the buffer does not release a handle Emacs has to the folder, so the folder can't be deleted. GNU Emacs 27.1 (...
NetMage's user avatar
  • 121
2 votes
0 answers
519 views

Is it possible to override the column width in Emacs?

I'm using graphical GNU Emacs 26.3 on Windows. At least on Windows, Emacs determines column width by looking at the AveCharWidth field in the font's OS/2 table. As the name suggests, this field ...
niconii's user avatar
  • 29
2 votes
0 answers
240 views

Emacs on Windows randomly stops recognizing the Caps Lock state

I'm running GNU Emacs 26.1 on Windows 10, with minimal customizations (custom shortcuts and command names, theme, (ido-mode 'buffers).). At the start of the session, the Caps Lock state is recognized ...
Arry's user avatar
  • 213
2 votes
0 answers
508 views

What are the steps to set up elpy to use the anaconda python distribution on Windows?

I have anaconda installed on Windows (Windows 7), and it is working well in Jupyter. But of course I'd prefer to work in emacs. I have elpy installed in emacs, and it successfully sends commands to ...
Philip's user avatar
  • 21
2 votes
1 answer
837 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
Geier's user avatar
  • 722
2 votes
0 answers
653 views

Can I use Emacs as an external editor of Thunderbird in MS Windows OS?

I want to edit the text in Emacs when using Thunderbird. I've installed the exteditor (https://github.com/exteditor/exteditor/releases) and specified path to "Emacs.exe" as an editor, but it was not ...
dualism's user avatar
  • 304
2 votes
0 answers
232 views

Updated from 24.5.1 to 25.1, not respecting default app scaling

I use surface book with 3000x2000 native resolution scaled 200%. I just reinstalled (spac)emacs with 25.1 version and a new emacs frame will start the right size then immediately halve in size as it ...
Eric Kaschalk's user avatar
2 votes
0 answers
571 views

Pressing both Ctrl keys at the same time is recognized as Ctrl plus Meta

When pressing both C at the same time, the combination is recognized as C-M on a Win7 machine and Emacs 24.5. I've stumbled on this by mistake while pressing C-C-SPC. While on a Linux machine, this ...
mihai's user avatar
  • 331
2 votes
0 answers
166 views

Composition of the Arabic letters Lam and Alef in Emacs

When I insert the character ل (the Arabic letter Lam) followed by ا (the Arabic letter Alef) the result would be لا. In other text editors when I have the word لا I can mark (select) each of its ...
Name's user avatar
  • 7,809
2 votes
0 answers
121 views

What coding system should I use for one Emacs configurations for both unix and Windows?

I set the coding as utf-8, and I got many ^M from eshell on Windows. There's utf-8-dos and utf-8-unix. I would like to use the same configuration file on both unix and Windows. I guess there are many ...
Nick's user avatar
  • 4,463
1 vote
1 answer
39 views

What causes this "Spawning child process: Exec format error"?

Sometimes when I try to open a file, I get this error. It can be any file type (.org, .html, etc.) Once Emacs gets into the state, it seems to stay messed up, and I have to restart. Emacs version: GNU ...
Rob N's user avatar
  • 607
1 vote
1 answer
41 views

How to run Emacs under Wine?

I need to debug some issues which my configuration has while running on Windows Is it possible to run Emacs binary [1] under Wine for that? The installer works fine, but runemacs.exe fails with this ...
andreoss's user avatar
  • 159
1 vote
1 answer
24 views

Org babel javascript using incorrect path names

I am trying to run javascript code blocks in Org Babel. My system is Cygwin on Windows 10 with Cygwin emacs-w32. (Beautiful setup in general, I love it. Makes Windows Unix-like and bearable to me. ...
Edward Doolittle's user avatar
1 vote
1 answer
389 views

Emacs/Tramp fails to connect with ssh key equiped with a passphrase

I have problem connecting via ssh using Tramp in Emacs on MS-Windows whenever the private ssh key I use is configured with a passphrase. Here's the problem : I. What works : On the command line ssh -...
Thibault Cimic's user avatar
1 vote
0 answers
25 views

Configure Emacs to Respect Windows File Attributes?

Is it possible to configure Emacs under Windows to respect the 'hidden' and 'system' NTFS file attributes for example by filtering out these files during selection of filename completion candidates in ...
StackExchanger's user avatar
1 vote
1 answer
499 views

Help me use emacs with org mode at work

When working from home on my linux machine - I have all my org files on Dropbox. I store all agenda files, todos, references and stuff like that in those. Basically my whole life is in those org files....
Arvydas's user avatar
  • 35
1 vote
0 answers
120 views

Unable to achieve advertised "word-level" accuracy using SyncTeX with PDF Tools

From the AucTeX Changelog (v. 11.89): To open the PDF output file you can now also use PDF Tools, a document viewer for Emacs. With it, as a plus, forward and backward search is accurate at word ...
StackExchanger's user avatar
1 vote
0 answers
272 views

pylsp times out over TRAMP

I'm (unfortunately and against my will) using Windows 10 running Emacs 28.1 attempting to connect to a remote Ubuntu machine via TRAMP (currently this happens to be WSL but there are other Linux ...
Connor Fuhrman's user avatar
1 vote
0 answers
71 views

How to fix the directory drive letter in eshell to run a NextJS project?

This bug is hard to describe, so I'll tell you how to recreate it. I'm on Windows 10, emacs 27.2, & node v16.13.0. Here are the steps: Open a default emacs (no init) with emacs -Q from powershell ...
bifurcation_is_nature's user avatar
1 vote
1 answer
269 views

Slow start-up in MS Windows and relation to the Windows registry

I am using Doom in MS Windows with Emacs 27.2. I am experiencing some very slow start-up times (I included the output of benchmark-init/show-duration-tree at the end). Also, the first actions I ...
pgaluzio's user avatar
1 vote
1 answer
200 views

call windows batch from shell

I'm trying to run QGIS from the command-line on Windows. QGIS provides a batch file for this, "C:\Program Files\QGIS 3.20.3\bin\qgis.bat". When I run this from within Emacs shell, the load ...
Lorem Ipsum's user avatar
  • 4,447
1 vote
0 answers
92 views

Why is access to Windows shares (SMB) slow from Emacs for Windows (x86-64)?

I use Emacs at work for most things, on Windows, and things are mostly good (slow Magit notwithstanding). But one thing completely puzzles me: opening files or directories on Windows shares (SMB) ...
JFM's user avatar
  • 195
1 vote
0 answers
142 views

org-mode has no syntax highlighting unless I start with evil

When I start emacs with evil-mode in my rc ((evil-mode 1)) I get syntax highlighting for .org files. However, when I do not, I do not get any syntax highlighting, even when trying M-x font-lock-mode a ...
kkeey's user avatar
  • 113
1 vote
0 answers
331 views

How can one debug a situation when emacs is unresponsive on Windows?

There is an operation in my setup which makes emacs unresponsive with high CPU. I checked the emacs process with process monitor, but it does not wait for an other process, so I guess it must be ...
Tom's user avatar
  • 1,230
1 vote
0 answers
18 views

DocView: Nuisance popup of page number in viewing .dvi files

I use DocView under Emacs 26.1 under Cygwin 10.0.2 under Windows 10.0. I use it chiefly for reading .dvi files. I discovered it by accident and find it extremely useful, but I cannot find any ...
Joseph Fineman's user avatar
1 vote
1 answer
1k views

Can I use Right Alt/Ctrl Keys as Alt/Super/Hyper modifier keys of Emacs in Windows 10?

I noticed that I've rarely used Right Control Key and Right Alt Key in my keyboard, so I'm wondering if I can use them as Alt/Super/Hyper modifier key in Emacs. Is such a thing possible in Windows 10? ...
dualism's user avatar
  • 304
1 vote
0 answers
1k views

fresh install of Doom on Windows brings up a blank (white) scratch buffer and nothing more

Like it says on the box - I get the "doom loaded such and such packages on startup", but I don't get the home screen, and none of the keybindings etc. Just a white scratch buffer window with ...
Jonathan Sahar's user avatar
1 vote
0 answers
56 views

Is the Hyper modifier key usable on non-X11 platforms?

I have a hyper modifier setup, however I was wondering if it's possible to use this on any windowing systems besides X11, for example: macOS Wayland Win32 The terminal.
ideasman42's user avatar
  • 8,726