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
0 votes
1 answer
30 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" ...
Rob N's user avatar
  • 607
1 vote
1 answer
41 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
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 ...
Peter Russell's user avatar
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
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 ...
sds's user avatar
  • 6,104
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
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 “...
AnoE's user avatar
  • 408
0 votes
1 answer
163 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 ...
Charles Lowell's user avatar
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 ...
balanga's user avatar
  • 125
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"...
Marek's user avatar
  • 3
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. ...
H. Dog's user avatar
  • 101
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 ...
The Programming M16A4's user avatar
0 votes
1 answer
155 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 ...
Dogalon Bruno's user avatar
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/...
Bert Munger's user avatar
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?
patfla's user avatar
  • 11
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 ...
user2567544's user avatar
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 ...
Lars Nielsen's user avatar
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:...
hatmatrix's user avatar
  • 1,056
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. ...
user3267886's user avatar
1 vote
1 answer
41 views

Configuring dedicated directory for lock files and auto save files on MS-Windows

How do I configure a dedicated location for lock files and auto-save files that works on MS-Windows, GNU/Linux, and macOS? I'm using GNU Emacs 28.2 The following works on GNU/Linux but not on MS-...
Victor L's user avatar
  • 111
0 votes
1 answer
45 views

Is there a cross platform way of accessing the GUI clipboard from emacs lisp?

I run emacs with a common configuration on osx and linux. I have some custom functions that need to get access to the GUI clipboard. I find interacting with the clipboard a bit of pain - so I've ...
Att Righ's user avatar
  • 775
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
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 ...
evilsetg's user avatar
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? ...
efe373's user avatar
  • 19
0 votes
0 answers
128 views

How can I run WSL commands from Emacs running on Windows?

There are tons of articles on how to install GNU Emacs on WSL(2) and how to work within WSL2. However, I have Emacs installed on Windows1 and would like to access the file system and commands within ...
Zeta's user avatar
  • 1,093
0 votes
0 answers
47 views

Tramp from Linux into a Windows machine and use the language development server from the Windows machine with eglot?

I think everything is in the title. I use Linux on a day to day basis. I'm going to occasionally have to edit a C# project that is on a Windows machine. There is a C# development environment installed ...
John Smith Optional's user avatar
0 votes
1 answer
21 views

Does kill-new take some time to put a string on the system clipboard?

I have an emacs function which calls kill-new to put a string onto the Windows system clipboard and then immediately invokes an external script to paste that string from the clipboard to an other ...
Tom's user avatar
  • 1,230
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 ...
Jonathan Sahar'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
1 answer
66 views

Dired format on Linux and Windows (dired-listing-switches)

I'm using the following on Linux: (setq dired-listing-switches "-agho --group-directories-first") and the files show like this: -rw-r--r--. 1 2.1K Mar 16 03:19 test.org -rw-r--r--. 1 ...
Zoli's user avatar
  • 421
0 votes
0 answers
204 views

'pdflatex'is not recognized as an internal or external command - windows 10

I tried all the hints I found until now to install Emacs with auctex, miktex and sumatraPDF on windows 10. I actually used to have a functional setup until recently where I got strange errors ...
Florin's user avatar
  • 1
2 votes
2 answers
308 views

How can I use Tramp's SSH on Windows 10 with the native ssh.exe?

Windows 10 has its own ssh.exe. I can use ssh.exe fine within eshell, but not for Tramp, e.g. /ssh:user@host:/tmp. Is there any way to enable Tramp with the built-in ssh (OpenSSH_for_Windows_8.1p1, ...
Zeta's user avatar
  • 1,093
0 votes
2 answers
1k views

How do I use Emacs editor in Git Bash terminal on a Windows machine?

I am currently using vim editor on Git Bash terminal running in a Windows machine, but I want to switch over to Emacs editor. It is returning bash: emacs: command not found . Do I need to install the ...
Amah N. Lofty's user avatar
5 votes
0 answers
249 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
0 votes
1 answer
294 views

how to run emacsclient on windows in the terminal

i cannot use emacsclient on windows 10. Starting it with the gui client works well but trying to start it in command line mode from a terminal, for example running emacsclient -nw -c is there a ...
Kit Carson's user avatar
3 votes
2 answers
288 views

Emacs Recognizes “~/” As HOME Instead of “~/AppData/Roaming/” When SSH to Windows

On Windows, c:/Users/shynur/AppData/Roaming/ is the HOME directory recognized by my Emacs-28.2. That's OK, though a little inconvenient. But when I ssh to Windows on PowerShell and then start Emacs, ...
shynur's user avatar
  • 5,164
0 votes
0 answers
341 views

SVG rendering in Org Mode - Emacs 28.1 on Windows 10

When rendering a SVG image in Org mode, it shows a colored rectangle. Used org-toggle-inline-images to show the image. Ok... now downloading this image, it gets correctly rendered by Emacs and in an ...
nephewtom's user avatar
  • 2,261
2 votes
1 answer
610 views

How to have utf-8 LF encoding by default on Windows?

I mainly use Linux (arch) but for work, I have to use Windows 10. So I share some files between Emacs (28.2 installed via chocolatey) on Windows and Emacs (28.2) on Linux. I never had any encoding ...
crocefisso's user avatar
  • 1,244
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 ...
Jason Hunter's user avatar
0 votes
0 answers
70 views

Slowly updating text appears to be in overwrite rather than insert mode--but isn't

I'm running emacsclient -nw and I notice sometimes the buffer appears to be in overwrite mode---I'll go to the beginning of a line and start typing, and when I do the existing text does not get pushed ...
Mittenchops's user avatar
1 vote
1 answer
43 views

Search and replace to merge or eliminate text lines

A WinRAR command (rar vt -pmypassword -v myarc.part01.rar >source.txt) produces detailed information on files contained in .rar files or segments (e.g., filename.part01.rar). Here's an example for ...
Ray Woodcock'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
0 votes
2 answers
23 views

`rename-file` into a different filesystem which does not support permissions

I'm running emacs under WSL 2, in which Windows drives are mounted below /mnt/<Drive Letter> with 9p as the filesystem. That filesystem does not support (setting) permissions on files. I want to ...
Lukas Barth's user avatar
0 votes
1 answer
92 views

Cygwin commands are not running under Emacs

I installed emacs packages from MobaXterm. When I'm in MobaXterm terminal I could run any Cygwin commands e.g. 'ls' or 'which' but when I start Emacs and call the shell it does not recognize any of ...
susja's user avatar
  • 137
1 vote
1 answer
142 views

Emacs doesn't pick up .emacs.d/ on windows

I'm using Linux at home but for work reasons I need to use Windows. That's why I've installed emacs on my company computer. I have a implemented at several scripts at home to be able to replicate my ...
swissy's user avatar
  • 77
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
1 vote
1 answer
136 views

How can I get the name of the file on the current Dired line?

I'm running emacs on WSL. The following function launches the binary file marked in dired: (defun wsl/execute () "execute file at point in dired" (interactive) (dired-do-shell-command ...
eatloaf's user avatar
  • 145
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
2 3 4 5
9