Questions tagged [wsl]

WSL is acronym for Windows Subsystem for Linux.

WSL is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10 (via lxss.sys driver).

https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux

34 questions
4
votes
3 answers

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 returns gnu/linux: system-type is a variable defined…
nephewtom
  • 2,219
  • 17
  • 29
3
votes
2 answers

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 called runemacs.sh which I keep in ~/bin/ It sets some…
Lord_Devi
  • 31
  • 3
3
votes
2 answers

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 emacs(which is run through "Bash on Ubuntu on…
Ilja Leiko
  • 133
  • 1
  • 4
3
votes
1 answer

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 Cygwin (pty and Cygwin paths). But BLODA ruins that…
gavenkoa
  • 3,352
  • 19
  • 36
2
votes
2 answers

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 others: How do you access those characters in Emacs? Edit: I'm…
menuhin
  • 315
  • 2
  • 11
2
votes
1 answer

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 considering switching to Windows Subsystem for Linux…
menuhin
  • 315
  • 2
  • 11
2
votes
3 answers

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 introduced into Emacs byte code starting from v26? For…
gavenkoa
  • 3,352
  • 19
  • 36
1
vote
0 answers

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 commands cause Emacs to hang. When this occurs, the…
Tokubara
  • 177
  • 5
1
vote
1 answer

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. If I am away from a computer during the day I…
Arvydas
  • 35
  • 8
1
vote
1 answer

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 "cmd.exe /c start \"\"" current-prefix-arg …
eatloaf
  • 145
  • 5
1
vote
0 answers

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-bindings. I've been able to find solutions for…
pgpb.padilla
  • 111
  • 4
1
vote
1 answer

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 tutorial C-v should move to next screen, yet for…
Evgeny
  • 133
  • 7
1
vote
0 answers

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 emacs from git://git.savannah.gnu.org/emacs.git. I…
gregghz
  • 133
  • 5
1
vote
0 answers

(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 Windows Subsystem for Linux 2. Using the mouse…
psisis
  • 11
  • 3
1
vote
1 answer

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.exe"…
Benilda Key
  • 159
  • 8
1
2 3