Questions tagged [microsoft-windows]
Questions relating to the use and configuration of Emacs on the proprietary Microsoft Windows Operating System.
408
questions
0
votes
2
answers
12
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
0
answers
21
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
33
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
1
answer
33
views
emacs opens from Windows start menu but not terminal
I upgraded a few months ago to emacs29.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/...
0
votes
0
answers
39
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
34
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
41
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 ...
0
votes
0
answers
26
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
18
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. ...
1
vote
1
answer
35
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-...
0
votes
1
answer
32
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 ...
3
votes
0
answers
167
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 ...
0
votes
1
answer
51
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 ...
0
votes
1
answer
131
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?
...
0
votes
0
answers
76
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 ...
0
votes
0
answers
40
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 ...
0
votes
1
answer
18
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 ...
0
votes
1
answer
87
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 ...
1
vote
1
answer
284
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 -...
1
vote
1
answer
47
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 ...
0
votes
0
answers
154
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 ...
2
votes
2
answers
209
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, ...
0
votes
2
answers
859
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 ...
3
votes
0
answers
190
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>.
...
0
votes
1
answer
199
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 ...
3
votes
2
answers
210
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, ...
0
votes
0
answers
266
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 ...
2
votes
1
answer
434
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 ...
0
votes
0
answers
28
views
Connecting a Windows VM from a Windows environment with Tramp
I've been beating my head against this all day and I cannot for the life of me figure out where this is going wrong. I am trying to connect to a Windows 11 VM from an emacs install on a Windows 10 ...
0
votes
1
answer
51
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 ...
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 ...
1
vote
1
answer
42
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 ...
1
vote
0
answers
24
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 ...
1
vote
1
answer
377
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....
0
votes
0
answers
37
views
How to make Git Bash and Emacs compatible on Windows?
I have Emacs and Git Bash running on Windows. I know I should not, but sometimes life is grim.
I found two problems.
The ~ gets expanded differently. In Git Bash ~ means /C/Users/me, but in Emacs ~ ...
0
votes
0
answers
205
views
Error Invoking GCC Driver on Windows
I recently installed gcc compiler MinGW on Windows 11, and haven't been able to run Emacs with my config files.
I tried to disable logging, but they show up again on starting Emacs.
Warning (...
1
vote
0
answers
117
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 ...
0
votes
2
answers
19
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 ...
0
votes
1
answer
90
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 ...
1
vote
1
answer
138
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 ...
2
votes
1
answer
50
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
1
answer
120
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
...
1
vote
0
answers
249
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 ...
1
vote
1
answer
93
views
Blocked keys! How can I get emacs to see all keystrokes?
Windows 7 64-bit
emacs 27.1
Some keys of the form C-M-<char> evidently are not sent to Emacs.
How do I get them sent to Emacs?
Example:
Emacs does not respond C-M-s.
Also, does not show binding, ...
2
votes
0
answers
120
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 ...
3
votes
1
answer
420
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 &...
3
votes
2
answers
398
views
‘Error: junk at end of line’ with native-comp
I recently switched to Emacs 28.1 hoping to use the new native-comp support. Being on Windows, I followed these instructions to install libgccjit, copying the resulting libgccjit.dll library to Emacs’...
1
vote
0
answers
70
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
...
1
vote
1
answer
246
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 ...
2
votes
1
answer
167
views
elpy on Windows: M-x elpy-config results in "Neither easy_install nor pip found"
I have trouble to get elpy working on Windows 10 with Emacs 27 (Downloaded from http://ftp.gnu.org/gnu/emacs/windows/emacs-27/emacs-27.2-x86_64-installer.exe).
When I do M-x elpy-config I got the ...