Questions tagged [microsoft-windows]

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

Filter by
Sorted by
Tagged with
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 ...
0 votes
1 answer
27 views

How to use Emacs on MS Windows for UNIX-like commands?

I tried running find-name-dired from one of my dired buffers. I got this: find . "(" -iname "*.cc" ")" -exec ls -ld {} ";" File not found - "*.cc" ...
0 votes
2 answers
823 views

Emacs on Windows won't save

I'm a total beginner to Emacs. I followed the tutorial that came with it, but when I tried to use C-x C-s, the echo area shows the message Opening output file: Permission denied, c:/Program Files (x86)...
0 votes
0 answers
27 views

Set path to gcc for native compilation

Is there a way to tell emacs to use a specific path to GCC for native compilation, overriding any GCC found by searching the PATH environment variable? I've been trying to set up Emacs 29.1 on Windows ...
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 ...
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 ...
3 votes
3 answers
6k views

Copy/paste from Windows clipboard in WSL terminal

I know that question has been asked dozens of times now, but i have tried every possible suggestion i have found online - nothing worked. I can't figure out how can I copy/paste from my Windows 10 to ...
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. ...
0 votes
1 answer
20 views

Strange behavior of win desktop shortcut

The emacs installer puts a shortcut on the desktop that works perfectly. If I open the emacs/bin folder, choose emacs.exe an the "Send to desktop" it creates a different kind of shortcut. ...
21 votes
7 answers
19k views

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

I am using a Windows 7 computer and do not have administrator access. Therefore I can not place a dot emacs file in the root directory. Is there a way for me to specify a different location for ...
0 votes
1 answer
162 views

treesit-install-language-grammar on Windows with Clang

I'm trying to use tree sitter on Windows with Emacs 29.1, but running into trouble when installing a language grammar. When I invoke the treesit-install-language-grammar function with the arguments ...
2 votes
2 answers
56 views

Cannot commit parts of *vc-diff* on Microsoft Windows

Emacs has a beautiful feature: in the *vc-diff* buffer (generated by vc-diff either by C-x v = in a file buffer or by = in a *vc-dir* buffer), kill unwanted hunks with k (i.e., diff-hunk-kill) and ...
0 votes
1 answer
60 views

emacs opens from Windows start menu but not terminal

I upgraded a few months ago to Emacs 29.1. Everything appeared to work until I tried to open Emacs from a terminal. Here is the error message Warning: arch-independent data dir 'c:/Program Files/Emacs/...
1 vote
1 answer
102 views

Emacs on Windows sets DISPLAY to w32

I stumbled upon the fact that Emacs on Windows sets the environment variable DISPLAY to w32 (if the variable is not already set). This causes problems for example with OpenSSH. What is the use case ...
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 &...
0 votes
1 answer
93 views

org-protocol URLs with UTF-8 (URL-encoded) characters aren't properly captured

When using org-protocol capture URLs on Windows, pages with non-ASCII titles or captured text results in a capture with incorrect values applied in the template. Despite such characters being properly ...
3 votes
1 answer
121 views

How to configure Emacs to display missing Unicode symbols

I am using Emacs 28.2 on Windows ("GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)"). It has Unicode support for many characters, but some seem to be missing. For example the Unicode character “...
0 votes
1 answer
44 views

emacs on wsl2 creating directories with bad/unusable permissions

Running emacs (29.1.90) in WSL2 on Windows 11. (Also tried 30.0.50, same results) Got everything working smoothly but when emacs creates directories they are being created with the wrong permissions. ...
0 votes
1 answer
154 views

Visual Glitch whenever loading emacs

I am running emacs on WSL, and whenever I load emacs I get the following screen: It goes away for a half second whenever I click on it, but then it comes back. Very new to this so am unsure what is ...
0 votes
3 answers
2k views

where to put .el files on Windows10 for loading at startup

I'm using emacs as a bog-standard program in Windows, and also from the command line in cygwin. They both use the same installation of emacs. I just grabbed yaml-mode.el off the net but I can't ...
0 votes
1 answer
116 views

pasting screenshots into org, on Windows

I've got the following code, which creates a filename, inserts a link to it at point, and should also save the current image in clipboard to disk at that filename/location. It used to work, but ...
7 votes
5 answers
8k views

Setting up Ditaa in Org-mode

I've been having trouble setting up ditaa to work in emacs, I got my copy of the ditaa jar from here And I've been trying to run this code block #+begin_src ditaa :file hello.png :exports results +-...
0 votes
1 answer
364 views

Touchpad vertical scroll gesture scrolls too much lines in GUI on Windows 10

How can I change that? I probably need something like fractional scrolling? Look at that video https://streamable.com/lfic9h
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 ...
0 votes
2 answers
251 views

Xref / xref-find-refernces / Windows 7 does not work

I'm struggling with Xref M-? finding references to symbols (C-code). It doesn't work for (e)tags nor for any symbol even in the buffered file. The Xref window/buffer with results is not opened instead ...
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 -...
0 votes
1 answer
71 views

How to open file from windows explorer in a new frame with emacsclient

How do I achieve that files opened from Explorer with emacs are always opened in a new frame? I tried making a link that has the target <path/to/emacs/bin>/emacsclientw.exe --create-frame. When ...
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 ...
0 votes
1 answer
71 views

GnuTLS not found in MSYS2 build - fixable?

I installed emacs 29.1 through git for Windows SDK which installs a subset of MSYS2 with the package manager pacman. pacman -S mingw-w64-x86_64-emacs When I start this emacs up, it gives this message:...
0 votes
1 answer
58 views

What steps should I take to troubleshoot use-package not loading packages

I'm using emacs 29.1 on Windows. I have extracted the emacs folder to a corporate OneDrive. I have a home folder set up with emacs-29.1\share\emacs\site-lisp\site-start.el with (setenv "HOME"...
0 votes
0 answers
44 views

How to bind the Super key in Emacs (non Windows)

Running xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }' results in 133 Super_L when pressing my Windows key (there is only one). How do I make use of ...
1 vote
1 answer
1k views

Test file permissions in Windows

The file-writable-p docstring says: Return t if file FILENAME can be written or created by you. In Windows you cannot usually write on files when they are used by a different app. In these ...
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? ...
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 ...
1 vote
1 answer
429 views

Where find good json formater and validation?

Emacs 26.1. Windows 10 It's has function json-pretty-print . But it not enough for me. Has any another better json formater and validator? I mean the next. Suppose I has error on json on line 26. I ...
0 votes
1 answer
396 views

emacs org-mode error during installation in windows

While I try to install org-mode using M-x package-install RET org RET, I am getting the following error. I am new to both emacs and org-mode and using Windows 10. Debugger entered--Lisp error: (void-...
0 votes
0 answers
62 views

Eglot - JSON RPC Connection Error 32606 "Internal Error"

I've been wanting to get Eglot working so that I may use its LSP for my classes and in the future. Right now I'm trying to get it working for Python and I have pyright installed with pip (as well as ...
0 votes
1 answer
242 views

How to start emacs server in background on startup Windows?

I want an emacs server to be started automatically when I power-up my computer running Windows. Also, I want this server to be a process in the background, not a window. Is it possible, and if so how? ...
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....
1 vote
1 answer
190 views

How to use Emacs to prevent screen lock from activating (Windows)

My employer has a pretty paranoid screen locking policy on Windows machines. There's no way to override the time settings for the lock. My colleagues an I have been experimenting with various homebrew ...
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 ...
0 votes
1 answer
60 views

Tramp to Windows

No matter what I try, I can't tramp to Windows;) I need to turn on debugging, but where does this debug output end up? All I see is a socket in /tmp when I enable this: ;The debug buffer is written as ...
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 ...
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 ...
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....
1 vote
2 answers
2k views

How to use Ctrl-C on WSL (key binding conflict)

I'm learning Emacs, using WSL-1 in cmder shell on Windows 10. C-c seems an essential key binding yet on Windows this combination is tied to copy from buffer. Same applies for Ctrl-v - right from the ...
4 votes
3 answers
1k views

Emacs: Get user input when using interactive Python with `getpass`

I am, unfortunately, using Windows 7 and am running GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-26. Everything functions as expected from the command line. However, within Emacs, I encounter a ...
0 votes
0 answers
48 views

Emacs shell exits after executing a cygwin command

Windows, Emacs 27.2. I execute fairly simple cygwin commands from an Emacs shell - first tried unzip then backed up to test ls - and the shell exits. Why?
0 votes
1 answer
42 views

Calling git commit from shell-command results in incorrect log message

I implemented the following to git commit after a file is saved. It works, I think, but the commit message, rather than being empty, is the literal value ''. This is the case whether or not I have any ...
0 votes
1 answer
79 views

Emas on windows gives a warning when loading theme (can run Lisp code)

I am relatively new to running Emacs on Windows. And I keep getting this warning / question while booting Emacs: Loading a theme can run Lisp code. Really load? (see image below) Can I somehow do so ...

1
2 3 4 5
9