Questions tagged [wsl]

WSL is acronym for Windows Subsystem for Linux.

Filter by
Sorted by
Tagged with
3 votes
0 answers
165 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
  • 197
0 votes
0 answers
75 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,065
0 votes
1 answer
32 views

How can I use Canadian CSA keyboard layout in Emacs on Windows WSL

Following the questions How to use a certain keyboard layout from emacs as Ubuntu keyboard layout and How to add a new keyboard layout to Emacs input methods? I need help for a concrete example - I ...
Rareform's user avatar
  • 309
0 votes
1 answer
37 views

emacsclient: error accessing server file "~/.emacs.d/server/server"

wsl Ubuntu cannot connect when using emacsclient to connect to emacs server. My emacs init.el file settings are (setq server-socket-dir "~/.emacs.d/server") and I see the following when ...
uesugierii's user avatar
0 votes
0 answers
102 views

Using Windows git.exe with Magit on WSL2 Hangs on commit

I currenlty run emacs-nox on WSL2. My workflow is as such: [Gentoo Linux Host] –ssh–> [WSL2 Ubuntu 22.04.2 LTS (Windows VM)] –open–> [emacs] –edit–> /mnt/c/<Path>/<Files> There is ...
Chris's user avatar
  • 143
0 votes
0 answers
110 views

How to build emacs-ng in WSL (Windows Subsystem for Linux)

I am experimenting with emacs-ng and want to build it in WSL, but I don't know what dependencies are missing or where to get them from, e.g. X development libs--I presume it will use X windows. I ...
intel_chris'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
0 votes
1 answer
98 views

Problem with key bindings in Emacs in the terminal on WSL

The key binding problem happens only when using Emacs in WSL terminal. For example: I can not add priorities on headings with shift+arrow key I can not collapse all headings with shift+tab I have a ...
Arvydas's user avatar
  • 35
1 vote
1 answer
376 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
0 votes
1 answer
49 views

Remapping org-agenda-transient-mode in spacemacs

The org-agenda-transient mode in spacemacs is mapped by default to M-SPC. Since I am running spacemacs in a wsl-g setup, this key is not available, since this is a default key mapping of windows and ...
bombadil's user avatar
  • 547
0 votes
2 answers
179 views

How to paste all images into emacs org-mode running in WSL in one directory

I got How to paste images into Emacs org-mode running in Windows Subsystem for Linux running, so I can paste images in emacs org-mode, but I would like to get all images in the same directory, f.e. ~/...
KenDJMN's user avatar
0 votes
0 answers
109 views

AUCTex in WSL cannot find TeX Live in Win

When trying to compile/ pdf-preview a tex-file, minibuffer spits out: ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment ...
user0815's user avatar
1 vote
1 answer
119 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
416 views

Windows Terminal (WSL2) and M-S, C-S in Org Mode

UPDATE: I just tested emacs -nw with the MSYS2 terminal (Windows) and with iTerm (macOS) and they all have the same problem. emacs -nw on WSL2 with the Windows Terminal has many known issues with key-...
pgpb.padilla's user avatar
0 votes
0 answers
168 views

Buffer display issue with unicode characters on WSL2

I have a file with a single Unicode character in it: 🕯 (Unicode character CANDLE, codepoint 128367, #o372557, #x1f56f). When I open this file via emacs -Q and hit C-l, the display buffer has issues. ...
ponguile's user avatar
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 ...
Evgeny's user avatar
  • 133
1 vote
0 answers
82 views

Can't launch emacs from outside bin directory

I'm building emacs from source (the feature/native-comp branch) on Ubuntu inside WSL 2. This was working a couple weeks ago, but today it stopped (I hadn't used it in some time though). I've cloned ...
gregghz's user avatar
  • 133
0 votes
0 answers
1k views

WSL: emacs gui won't start

I'm on Windows 10 Pro 10.0.21337 (windows insider program) and installed WSL with Ubuntu 20.04. From within ubuntu I said apt-get update apt-get upgrade apt-get install emacs dpkg -l emacs -> ||/ ...
user829755's user avatar
0 votes
0 answers
442 views

Cannot connect to WSL using Tramp (all localhost)

this is my %USERPROFILE%\.ssh\config Host wsl User daniele Port 2222 HostName localhost If I open a cmd and run ssh wsl everything works like a charm. But when I try: C-x C-f /ssh[x]:daniele@...
Daniele's user avatar
  • 647
1 vote
0 answers
496 views

(Windows Terminal) and xterm-mouse-mode has a problem

Don’t really know where to post this issue, or even the nature of it, but it can get very frustrating. This is not exclusive to Windows Terminal, MobaXTerm has the same problem. So I use emacs under ...
psisis's user avatar
  • 11
3 votes
2 answers
582 views

US-Intl layout EU users of Emacs in WSL - how do you input those Alt-Gr characters?

I am a user of the US-International keyboard layout and the German language. Somehow Emacs does not allow me to access those Alt-Gr characters for example the German Eszett "ß" and many ...
menuhin's user avatar
  • 325
1 vote
1 answer
138 views

Start Process Not Working: Process List Claims Process Started but Process UI not shown

Start Process is not working when starting GUI application in WSL on Windows 10 Pro. I am calling Start Process as follows. (start-process "yekneb-exec-2" nil "/mnt/c/WINDOWS/explorer....
Benilda Key's user avatar
3 votes
2 answers
2k views

Emacs as Editor under Win10 WSL 2

From Windows 10, how can I call an Emacs instance residing on a Windows 10 WSL 2 Linux install, passing it a given file to visit? So far, I've done this: On my WSL 2 Linux, I've created a script ...
Lord_Devi's user avatar
0 votes
1 answer
227 views

Emacs wsl grep fails on special characters

I'm using GNU Emacs 26.3 on a Windows 10 system (Virtualbox guest on Mac). The following grep command inside emacs fails: grep -i -n -d skip -e temp_ * with this error: grep -i -n -d skip -e temp_ ...
HeyMan's user avatar
  • 101
2 votes
1 answer
765 views

Experience with WSL as underlying shell (esp. with Texlive) for native win-x64 Emacs

I've been using MinGW compiled native windows 64-bit Emacs for a while, and I paired it with Cygwin to use especially Texlive, as well as other common linux and shell programs and commands. I am ...
menuhin's user avatar
  • 325
0 votes
1 answer
151 views

Why does emacs on a remote computing cluster behave differently depending on how the cluster is accessed?

I use SSH to work on a Linux computer cluster, emacs is my preferred text editor there. My local computer is a Windows 10 machine. If I use PuTTY to access the cluster remotely, when I run emacs, it ...
Jack Boyle's user avatar
0 votes
1 answer
613 views

Bring Emacs frame to front when running emacsclient on WSL

Currently using Emacs on Windows Subsystem for Linux (WSL). I have this alias for emacsclient executable: alias e='emacsclient -n' Which I run very often when I am on the terminal (I use ConEmu or ...
nephewtom's user avatar
  • 2,229
1 vote
0 answers
637 views

Emacs on MS Windows, typescript lsp server on wsl?

Long-time emacs user (38 years or so, not kidding). I'm on Windows 10, running native emacs 26.1. I'm doing some Javascript/Typescript (vue.js) development, using WSL for that world, still with the ...
GaryO's user avatar
  • 486
0 votes
2 answers
168 views

Shell-mode execute script every time a shell is invoked

I have changed the emacs-shell mode shell to WSL ubuntu but however, the prompt is not very user-readable. For this reason I would like to execute a script that changes it so that its more readable ...
Teererai Marange's user avatar
4 votes
3 answers
1k views

Is there a way Emacs can infer is running on WSL (Windows Subsystem for Linux)?

I would like to identify when Emacs is running on WSL (Windows Subsystem for Linux). Normally I use system-type variable to check if Emacs is on Linux, Windows or MacOS X. Though in this case it ...
nephewtom's user avatar
  • 2,229
2 votes
3 answers
728 views

error: Invalid byte opcode: op=183, ptr=2

I byte-compile my ~/.emacs.d/init.el. It was done by Emacs 26.1 from Cygwin and I got error when load emacs-nox 25.2 from Debian WSL: error: Invalid byte opcode: op=183, ptr=2 Were new opcodes ...
gavenkoa's user avatar
  • 3,362
3 votes
2 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 ...
Ilja Leiko's user avatar
0 votes
1 answer
654 views

Debugging emacs 24.5 slow startup (WSL)

I'm running emacs24-nox on Ubuntu trusty on Windows Linux Subsystem, and I'm trying to figure out why the startup time is slow. I've inspected the startup with strace and found two calls to poll that ...
Jimmy's user avatar
  • 101
3 votes
1 answer
2k views

What flows are usable with WSL and Emacs (Windows Subsystem For Linux)?

I have negative experience with Cygwin but it's only the one option I have on Windows. In recent days Cygwin provides W32 build which has native UI (copy/paste, widgets) with tight integration to ...
gavenkoa's user avatar
  • 3,362